mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
This reverts commit d15a3fcc98.
This commit is contained in:
@@ -43,12 +43,13 @@ export class ActionBar extends ActionRunner implements IActionRunner {
|
||||
super();
|
||||
this._options = options;
|
||||
this._context = options.context;
|
||||
this._toDispose = [];
|
||||
|
||||
if (this._options.actionRunner) {
|
||||
this._actionRunner = this._options.actionRunner;
|
||||
} else {
|
||||
this._actionRunner = new ActionRunner();
|
||||
this._register(this._actionRunner);
|
||||
this._toDispose.push(this._actionRunner);
|
||||
}
|
||||
|
||||
//this._toDispose.push(this.addEmitter(this._actionRunner));
|
||||
@@ -364,6 +365,8 @@ export class ActionBar extends ActionRunner implements IActionRunner {
|
||||
lifecycle.dispose(this._items);
|
||||
this._items = [];
|
||||
|
||||
this._toDispose = lifecycle.dispose(this._toDispose);
|
||||
|
||||
this._domNode.remove();
|
||||
|
||||
super.dispose();
|
||||
|
||||
Reference in New Issue
Block a user