本文整理汇总了TypeScript中vs/base/common/lifecycle.disposeAll函数的典型用法代码示例。如果您正苦于以下问题:TypeScript disposeAll函数的具体用法?TypeScript disposeAll怎么用?TypeScript disposeAll使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了disposeAll函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: localDispose
private localDispose(): void {
this.toLocalDispose = disposeAll(this.toLocalDispose);
if (this.quickFixRequestPromise) {
this.quickFixRequestPromise.cancel();
this.quickFixRequestPromise = null;
}
}
示例2: stopMonitoring
public stopMonitoring(invokeStopCallback:boolean): void {
if (!this.isMonitoring()) {
// Not monitoring
return;
}
// Unhook
this.hooks = disposeAll(this.hooks);
this.mouseMoveEventMerger = null;
this.mouseMoveCallback = null;
let onStopCallback = this.onStopCallback;
this.onStopCallback = null;
if (invokeStopCallback) {
onStopCallback();
}
}
示例3: dispose
public dispose(): void {
super.dispose();
this.hide();
this.toDispose = disposeAll(this.toDispose);
if (this.$boxContainer) {
this.$boxContainer.destroy();
this.$boxContainer = null;
}
if (this.$contents) {
this.$contents.destroy();
this.$contents = null;
}
if (this.$label) {
this.$label.destroy();
this.$label = null;
}
}
示例4: dispose
public dispose(): void {
this._toDispose = disposeAll(this._toDispose);
}
示例5: dispose
public dispose(): void {
this.toUnbind = disposeAll(this.toUnbind);
}
示例6: dispose
public dispose(): void {
this.localDispose();
this.toDispose = disposeAll(this.toDispose);
this.emit('destroy', null);
}