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

fix garbled arrays in posted JSON data
This commit is contained in:
Ritchie Martori
2013-03-25 15:30:07 -07:00

View File

@@ -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 {