diff options
Diffstat (limited to 'web/src/js/dispatcher.js')
-rw-r--r-- | web/src/js/dispatcher.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/src/js/dispatcher.js b/web/src/js/dispatcher.js index 65c4a4a0..4fe23447 100644 --- a/web/src/js/dispatcher.js +++ b/web/src/js/dispatcher.js @@ -18,9 +18,9 @@ Dispatcher.prototype.unregister = function (callback) { }; Dispatcher.prototype.dispatch = function (payload) { console.debug("dispatch", payload); - this.callbacks.forEach(function (callback) { - callback(payload); - }); + for(var i = 0; i < this.callbacks.length; i++){ + this.callbacks[i](payload); + } }; |