commit 364661625543ede0e60fd5a426666d6b2db31197 parent 24e5e3be146ab5bc4098c94bab2683e3fcf2b206 Author: Felix Schindler <fschindler@weluse.de> Date: Mon, 1 Jun 2015 16:19:00 +0200 Fixes #105 * Fixes #105 remove event listener. Diffstat:
| M | src/stores/AppStore.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js @@ -49,7 +49,7 @@ var AppStore = Object.assign({}, EventEmitter.prototype, { * @param {function} callback Callback function. */ off(callback) { - this.off(CHANGE_EVENT, callback); + this.removeListener(CHANGE_EVENT, callback); } });