Permalink
Browse files

Fix global var leak

  • Loading branch information...
1 parent bc0257d commit cebf88a0a3ef2160ec5870e75e98406774527b2b @stevebest stevebest committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cradle/database/views.js
@@ -88,7 +88,7 @@ Database.prototype._getOrPostView = function (path, options, callback) {
options = parseOptions(options);
if (options && options.body) {
- body = options.body;
+ var body = options.body;
delete options.body;
return this.query({

2 comments on commit cebf88a

Could you please commit this change to npm as well?

Yeah, it would be great it this got into NPM as soon as possible. It breaks my Mocha tests.

Please sign in to comment.