Skip to content
Browse files

Don't save prototype junk from conf object

  • Loading branch information...
1 parent 7826a74 commit 399a78b167d9109bc4d0847a16d26fa49278fae3 @agnoster committed Feb 1, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/cli/config.js
View
3 lib/cli/config.js
@@ -263,7 +263,8 @@ Config.prototype.save = function(data, global, cb) {
}
for (var key in data) {
- ++left
+ if (!data.hasOwnProperty(key)) continue
+ ;++left
this.set(key, data[key], global, _cb)
}
}

0 comments on commit 399a78b

Please sign in to comment.
Something went wrong with that request. Please try again.