mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 12:54:39 +00:00
preserve outer this with arrow function
This commit is contained in:
@@ -68,7 +68,7 @@ class CustomRoomTagStore extends EventEmitter {
|
|||||||
addListener(callback) {
|
addListener(callback) {
|
||||||
this.on("change", callback);
|
this.on("change", callback);
|
||||||
return {
|
return {
|
||||||
remove() {
|
remove: () => {
|
||||||
this.removeListener("change", callback);
|
this.removeListener("change", callback);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user