mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 08:36:46 +00:00
ui: Change some components to use willDestroyElement vs willDestroy (#8313)
* ui: Change <DataSource /> to use willDestroyElement vs willDestroy * Change 3 more components to use willDestroyElement vs willDestroy
This commit is contained in:
parent
340bc68e45
commit
e2c734f063
@ -44,7 +44,7 @@ export default Component.extend({
|
|||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
this._listeners = this.dom.listeners();
|
this._listeners = this.dom.listeners();
|
||||||
},
|
},
|
||||||
willDestroy: function() {
|
willDestroyElement: function() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
this._listeners.remove();
|
this._listeners.remove();
|
||||||
},
|
},
|
||||||
|
@ -45,10 +45,11 @@ export default Component.extend({
|
|||||||
this._lazyListeners = this.dom.listeners();
|
this._lazyListeners = this.dom.listeners();
|
||||||
this.guid = this.dom.guid(this);
|
this.guid = this.dom.guid(this);
|
||||||
},
|
},
|
||||||
willDestroy: function() {
|
willDestroyElement: function() {
|
||||||
this.actions.close.apply(this);
|
this.actions.close.apply(this);
|
||||||
this._listeners.remove();
|
this._listeners.remove();
|
||||||
this._lazyListeners.remove();
|
this._lazyListeners.remove();
|
||||||
|
this._super(...arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
didInsertElement: function() {
|
didInsertElement: function() {
|
||||||
|
@ -12,7 +12,7 @@ export default Component.extend({
|
|||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
this._listeners = this.dom.listeners();
|
this._listeners = this.dom.listeners();
|
||||||
},
|
},
|
||||||
willDestroy: function() {
|
willDestroyElement: function() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
this.repo.close();
|
this.repo.close();
|
||||||
this._listeners.remove();
|
this._listeners.remove();
|
||||||
|
@ -13,7 +13,7 @@ export default Component.extend({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
willDestroy: function() {
|
willDestroyElement: function() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
this.chart.removeGuard(this.name);
|
this.chart.removeGuard(this.name);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user