Skip to content

Commit

Permalink
fix iteration of arrays in wrapAsyncFunctions()
Browse files Browse the repository at this point in the history
  • Loading branch information
cmil committed Mar 17, 2013
1 parent b454d05 commit ddacd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function wrapAsyncFunctions(asyncFunctions, sandbox, events, done, sandboxRoot)
return result;
}
};
} else if (typeof asyncFunctions[k] === 'object') {
} else if (typeof asyncFunctions[k] === 'object' && !(asyncFunctions[k] instanceof Array)) {
sandbox[k] = sandbox[k] || {};
wrapAsyncFunctions(asyncFunctions[k], sandbox[k], events, done, sandboxRoot);
} else {
Expand Down

0 comments on commit ddacd0a

Please sign in to comment.