preserve outer this with arrow function
parent
7b23fa7a4f
commit
52aab2be98
|
@ -68,7 +68,7 @@ class CustomRoomTagStore extends EventEmitter {
|
|||
addListener(callback) {
|
||||
this.on("change", callback);
|
||||
return {
|
||||
remove() {
|
||||
remove: () => {
|
||||
this.removeListener("change", callback);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue