Skip to content

Commit

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

0 comments on commit 3fda05e

Please sign in to comment.