diff --git a/src/js/lib/helper.js b/src/js/lib/helper.js index b30fb08..a72f2e5 100644 --- a/src/js/lib/helper.js +++ b/src/js/lib/helper.js @@ -8,7 +8,7 @@ var toInt = exports.toInt = function (x) { }; var clone = exports.clone = function (obj) { - if (obj === null) { + if (!obj) { return null; } else if (obj.constructor === Array) { return obj.map(clone);