1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Correctly unsubscribe from JS event listeners

This commit is contained in:
sauls8t 2019-01-24 15:27:21 +00:00
parent 9fd002b5da
commit 1e217274c6
3 changed files with 13 additions and 13 deletions

View file

@ -79,8 +79,8 @@ export default Component.extend(Modals, {
willDestroyElement() {
this._super(...arguments);
this.eventBus.unsubscribe('notifyUser');
this.eventBus.unsubscribe('pinChange');
this.eventBus.unsubscribe('notifyUser', this, 'processNotification');
this.eventBus.unsubscribe('pinChange', this, 'setupPins');
iziToast.destroy();
},