From 255528aaa70b957511faa19b832ef3cc8bbe301b Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 8 Apr 2019 11:16:24 +0100 Subject: [PATCH] ui: Adds _super in places where it had been missed (mainly dom-buffer) (#5583) --- ui-v2/app/components/dom-buffer-flush.js | 2 ++ ui-v2/app/components/dom-buffer.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui-v2/app/components/dom-buffer-flush.js b/ui-v2/app/components/dom-buffer-flush.js index 035d1ac491..e05c9b1b7e 100644 --- a/ui-v2/app/components/dom-buffer-flush.js +++ b/ui-v2/app/components/dom-buffer-flush.js @@ -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); }, }); diff --git a/ui-v2/app/components/dom-buffer.js b/ui-v2/app/components/dom-buffer.js index 054d4ca3da..3d70f72059 100644 --- a/ui-v2/app/components/dom-buffer.js +++ b/ui-v2/app/components/dom-buffer.js @@ -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()); }, });