From ca13cea99ca002af3367907ee2ce9189faa7954c Mon Sep 17 00:00:00 2001 From: "J. Harshbarger" Date: Thu, 4 Jun 2015 13:48:11 +0900 Subject: [PATCH] Fix for V8 disables optimization for dispatch --- src/Signal.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Signal.js b/src/Signal.js index 48b9c83..0601068 100644 --- a/src/Signal.js +++ b/src/Signal.js @@ -202,9 +202,13 @@ if (! this.active) { return; } + + var paramsArr = []; + for (var i=0; i < arguments.length; i++) { + paramsArr.push(arguments[i]); + } - var paramsArr = Array.prototype.slice.call(arguments), - n = this._bindings.length, + var n = this._bindings.length, bindings; if (this.memorize) {