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 a7c479e073
commit 255528aaa7
2 changed files with 4 additions and 0 deletions

View File

@ -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);
}, },
}); });

View File

@ -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());
}, },
}); });