mirror of https://github.com/status-im/consul.git
ui: Adds _super in places where it had been missed (mainly dom-buffer) (#5583)
This commit is contained in:
parent
a7c479e073
commit
255528aaa7
|
@ -11,9 +11,11 @@ export default Component.extend({
|
||||||
this.append = append.bind(this);
|
this.append = append.bind(this);
|
||||||
},
|
},
|
||||||
didInsertElement: function() {
|
didInsertElement: function() {
|
||||||
|
this._super(...arguments);
|
||||||
get(this, 'buffer').on('add', this.append);
|
get(this, 'buffer').on('add', this.append);
|
||||||
},
|
},
|
||||||
didDestroyElement: function() {
|
didDestroyElement: function() {
|
||||||
|
this._super(...arguments);
|
||||||
get(this, 'buffer').off('add', this.append);
|
get(this, 'buffer').off('add', this.append);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,9 +9,11 @@ export default Component.extend({
|
||||||
return 'modal';
|
return 'modal';
|
||||||
},
|
},
|
||||||
didInsertElement: function() {
|
didInsertElement: function() {
|
||||||
|
this._super(...arguments);
|
||||||
get(this, 'buffer').add(this.getBufferName(), this.element);
|
get(this, 'buffer').add(this.getBufferName(), this.element);
|
||||||
},
|
},
|
||||||
didDestroyElement: function() {
|
didDestroyElement: function() {
|
||||||
|
this._super(...arguments);
|
||||||
get(this, 'buffer').remove(this.getBufferName());
|
get(this, 'buffer').remove(this.getBufferName());
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue