From 216d3d92ebdf6affb0062932532c615534d4c3ed Mon Sep 17 00:00:00 2001 From: Chris O'Hara Date: Thu, 23 Jan 2014 08:55:22 +1100 Subject: [PATCH] Fix an issue with copy() --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4b1c82f..8684758 100644 --- a/index.js +++ b/index.js @@ -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]; }