Permalink
Browse files

Fix an issue with copy()

  • Loading branch information...
chriso committed Jan 22, 2014
1 parent f74b890 commit 216d3d92ebdf6affb0062932532c615534d4c3ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -386,7 +386,7 @@ exports.copy = function (obj) {
var copy = {};
for (var i in obj) {
if (typeof obj[i] === 'object') {
- copy[i] = copy[i] ? exports.copy(obj[i]) : null;
+ copy[i] = obj[i] ? exports.copy(obj[i]) : null;
} else {
copy[i] = obj[i];
}

0 comments on commit 216d3d9

Please sign in to comment.