提交 30abd0b4 编写于 作者: I isidor

actionBar: always dispose action items for now.

上级 d250ccb1
......@@ -554,8 +554,7 @@ export class ActionBar extends EventEmitter implements IActionRunner {
}
public clear(): void {
// Do not dispose action items if they were provided from outside
this.items = this.options.actionItemProvider ? [] : lifecycle.dispose(this.items);
this.items = lifecycle.dispose(this.items);
$(this.actionsList).empty();
}
......@@ -670,7 +669,7 @@ export class ActionBar extends EventEmitter implements IActionRunner {
public dispose(): void {
if (this.items !== null) {
lifecycle.dispose(this.items);
this.clear();
}
this.items = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册