preserve outer this with arrow function

pull/21833/head
Bruno Windels 2019-02-07 11:12:34 +00:00
parent 7b23fa7a4f
commit 52aab2be98
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class CustomRoomTagStore extends EventEmitter {
addListener(callback) {
this.on("change", callback);
return {
remove() {
remove: () => {
this.removeListener("change", callback);
},
};