Skip to content

Commit

Permalink
Use angular.forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Sep 7, 2013
1 parent f9cdb86 commit 0e97625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function $Resolve( $q, $injector) {
}
// Wait for any parameter that we have a promise for (either from parent or from this
// resolve; in that case study() will have made sure it's ordered before us in the plan).
params.forEach(function (dep) {
forEach(params, function (dep) {
if (promises.hasOwnProperty(dep) && !locals.hasOwnProperty(dep)) {
waitParams++;
promises[dep].then(function (result) {
Expand Down

0 comments on commit 0e97625

Please sign in to comment.