Permalink
Browse files

add code smell

  • Loading branch information...
tj committed Sep 20, 2012
1 parent de679eb commit 9e7480662b10ab0a4f0c81e0afb5058210f4ff10
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.js
View
@@ -51,7 +51,11 @@ exports.values = function(obj){
*/
exports.merge = function(a, b){
- for (var key in b) a[key] = b[key];
+ for (var key in b) {
+ if (has.call(b, key)) {
+ a[key] = b[key];
+ }
+ }
return a;
};

0 comments on commit 9e74806

Please sign in to comment.