ui: Adds _super in places where it had been missed (mainly dom-buffer) (#5583)

This commit is contained in:
John Cowen 2019-04-08 11:16:24 +01:00 committed by John Cowen
parent 58b73d9966
commit 1c0cc9353a
2 changed files with 4 additions and 0 deletions

View file

@ -11,9 +11,11 @@ export default Component.extend({
this.append = append.bind(this);
},
didInsertElement: function() {
this._super(...arguments);
get(this, 'buffer').on('add', this.append);
},
didDestroyElement: function() {
this._super(...arguments);
get(this, 'buffer').off('add', this.append);
},
});

View file

@ -9,9 +9,11 @@ export default Component.extend({
return 'modal';
},
didInsertElement: function() {
this._super(...arguments);
get(this, 'buffer').add(this.getBufferName(), this.element);
},
didDestroyElement: function() {
this._super(...arguments);
get(this, 'buffer').remove(this.getBufferName());
},
});