aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/dispatcher.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/dispatcher.js')
-rw-r--r--frontend/src/dispatcher.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/dispatcher.js b/frontend/src/dispatcher.js
index fa08d48..881970f 100644
--- a/frontend/src/dispatcher.js
+++ b/frontend/src/dispatcher.js
@@ -47,7 +47,7 @@ class Dispatcher {
};
unregister = (callback) => {
- this.listeners = _.without(callback);
+ _.remove(this.listeners, l => l.callback === callback);
};
}