Skip to content

Commit

Permalink
Don't save prototype junk from conf object
Browse files Browse the repository at this point in the history
  • Loading branch information
agnoster committed Feb 1, 2011
1 parent 7826a74 commit 399a78b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cli/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 399a78b

Please sign in to comment.