Skip to content

Commit

Permalink
Pass 3rd arg so monitor's array sorta-fills are at least callback-com…
Browse files Browse the repository at this point in the history
…patible with ES5 array iterators
  • Loading branch information
briancavalier committed Jul 1, 2013
1 parent e26862e commit a1e6c5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monitor/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(function(define) { 'use strict';
define(function() {

// Silly Array polyfills, since when.js needs to be
// Silly Array helpers, since when.js needs to be
// backward compatible to ES3

return {
Expand All @@ -30,7 +30,7 @@ define(function() {
len = array.length;

while(++i < len) {
f(array[i], i);
f(array[i], i, array);
}
}

Expand All @@ -46,7 +46,7 @@ define(function() {
result = initial;

while(++i < len) {
result = f(result, array[i], i);
result = f(result, array[i], i, array);
}

return result;
Expand Down

0 comments on commit a1e6c5e

Please sign in to comment.