mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
preserve outer this with arrow function
This commit is contained in:
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…
x
Reference in New Issue
Block a user