提交 139d51ae 编写于 作者: M Matt Bierner

Use Disposable.None

上级 f94d5ba0
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册