Skip to content
Browse files

add code smell

  • Loading branch information...
1 parent de679eb commit 9e7480662b10ab0a4f0c81e0afb5058210f4ff10 @tj tj committed Sep 20, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.js
View
6 index.js
@@ -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.
Something went wrong with that request. Please try again.