Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/Signal.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,13 @@
if (! this.active) {
return;
}

var len = arguments.length, paramsArr = new Array(len);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment explaining why we are not using Array#slice.call for future reference? (just so in +6mo we still know why it was implemented like this)

for (var i=0; i < len; ++i) {
paramsArr[i] = arguments[i];
}

var paramsArr = Array.prototype.slice.call(arguments),
n = this._bindings.length,
var n = this._bindings.length,
bindings;

if (this.memorize) {
Expand Down