Permalink
Browse files

Fix for when.some

  • Loading branch information...
1 parent 13dcc6b commit df5b07f7afe4940896fe5ed6d47e2fd2905b86f5 @briancavalier briancavalier committed Jun 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 when.js
View
@@ -399,7 +399,7 @@ define(function() { "use strict";
return when(promisesOrValues, function(promisesOrValues) {
- var toResolve, results, deferred, resolver, rejecter, handleProgress, forEach;
+ var toResolve, results, deferred, resolver, rejecter, handleProgress;
deferred = defer();
@@ -409,7 +409,7 @@ define(function() { "use strict";
} else {
results = {};
toResolve = 0;
- forEach(promisesOrValues, function() { toResolve++; });
+ forEachKey(promisesOrValues, function() { toResolve++; });
}
// Wrapper so that rejecter can be replaced

0 comments on commit df5b07f

Please sign in to comment.