From 52aab2be9810c3593f408261eef08e66fe4af130 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 7 Feb 2019 11:12:34 +0000 Subject: [PATCH] preserve outer this with arrow function --- src/stores/CustomRoomTagStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/CustomRoomTagStore.js b/src/stores/CustomRoomTagStore.js index 0670ed0e6c..1983fa7462 100644 --- a/src/stores/CustomRoomTagStore.js +++ b/src/stores/CustomRoomTagStore.js @@ -68,7 +68,7 @@ class CustomRoomTagStore extends EventEmitter { addListener(callback) { this.on("change", callback); return { - remove() { + remove: () => { this.removeListener("change", callback); }, };