Use Disposable.None

This commit is contained in:
Matt Bierner
2019-06-05 15:30:45 -07:00
parent f94d5ba08e
commit 139d51aec4
+1 -2
View File
@@ -17,8 +17,7 @@ export interface Event<T> {
}
export namespace Event {
const _disposable = { dispose() { } };
export const None: Event<any> = function () { return _disposable; };
export const None: Event<any> = () => Disposable.None;
/**
* Given an event, returns another event which only fires once.