Skip to content

Commit

Permalink
Fix kriskowal#179 allResolved thenable assimilation
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Jan 27, 2013
1 parent 7bc8e07 commit 9d6921c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion q.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,10 +1129,11 @@ function all(promises) {
Q.allResolved = allResolved;
function allResolved(promises) {
return when(promises, function (promises) {
promises = array_map(promises, resolve);
return when(all(array_map(promises, function (promise) {
return when(promise, noop, noop);
})), function () {
return array_map(promises, resolve);
return promises;
});
});
}
Expand Down

0 comments on commit 9d6921c

Please sign in to comment.