From a5ff8bbdb6e62ace1c89c188d5fe2c8a57e66e26 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Wed, 1 Aug 2018 21:17:36 +0100 Subject: [PATCH] Fix removing keybind-activated listeners --- client/src/structs/settings/types/keybind.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/structs/settings/types/keybind.js b/client/src/structs/settings/types/keybind.js index 22b22e03..bc528792 100644 --- a/client/src/structs/settings/types/keybind.js +++ b/client/src/structs/settings/types/keybind.js @@ -29,7 +29,7 @@ export default class KeybindSetting extends Setting { // When there are no more keybind-activated listeners, remove the keybind setting from the set of active keybind settings // Always remember to unbind keybind-activated listeners! this.on('removeListener', (event, listener) => { - if (!this.listenerCount('keybind-activated')) instances.remove(this); + if (!this.listenerCount('keybind-activated')) instances.delete(this); }); this.__keybind_activated = this.__keybind_activated.bind(this);