details: https://code.tryton.org/tryton/commit/1d8558831bd7
branch: 7.6
user: Cédric Krier <[email protected]>
date: Tue Dec 16 01:10:47 2025 +0100
description:
Replace notify method by binded version in constructor of chat and
notification menu
We need to keep a reference to the binded method registered to be able
to
unregister it.
Closes #14425
(grafted from e6effcf7530bcfa534fa1c33769e28a5b6c8c533)
diffstat:
sao/src/chat.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 1266d4f6aeaa -r 1d8558831bd7 sao/src/chat.js
--- a/sao/src/chat.js Tue Dec 16 11:56:31 2025 +0100
+++ b/sao/src/chat.js Tue Dec 16 01:10:47 2025 +0100
@@ -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();
}