Permalink
Browse files

fix iteration of arrays in wrapAsyncFunctions()

  • Loading branch information...
1 parent b454d05 commit ddacd0a98af10eb45e91edff8ecb700b766809cd @cmil cmil committed Mar 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/script.js
View
@@ -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 {

0 comments on commit ddacd0a

Please sign in to comment.