diff --git a/sao/src/chat.js b/sao/src/chat.js index bc27560ae4..461a85fccd 100644 --- a/sao/src/chat.js +++ b/sao/src/chat.js @@ -5,8 +5,9 @@ class _Chat { constructor(record) { + this.notify = this.notify.bind(this); this.record = record; - Sao.Bus.register(`chat:${this.record}`, this.notify.bind(this)); + Sao.Bus.register(`chat:${this.record}`, this.notify); this.el = this.__build(); } diff --git a/sao/src/notification.js b/sao/src/notification.js index 9e828bd32d..e6ed4af2e3 100644 --- a/sao/src/notification.js +++ b/sao/src/notification.js @@ -6,6 +6,7 @@ class _NotificationMenu { constructor() { + this.notify = this.notify.bind(this); this.el = jQuery('