preserve outer this with arrow function
This commit is contained in:
parent
7b23fa7a4f
commit
52aab2be98
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue