Permalink
Browse files

Merge pull request #164 from cmil/fix-garbled-body

fix garbled arrays in posted JSON data
  • Loading branch information...
2 parents b454d05 + ddacd0a commit 3fda05e4efc33b38a999d33f72d397b3d396a09e @ritch ritch committed Mar 25, 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 3fda05e

Please sign in to comment.