mirror of https://github.com/status-im/consul.git
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
cf9469f201
commit
3820dca426
|
@ -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…
Reference in New Issue