本文整理匯總了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);
}