Simplify how deep _.clone handles booleans.

Former-commit-id: adf1d03677336131da2f62bd2fb6e2900c9889a4
This commit is contained in:
John-David Dalton
2012-10-06 17:32:18 -07:00
parent 2adf3f364c
commit 1329599987
2 changed files with 8 additions and 10 deletions

View File

@@ -720,7 +720,7 @@
}
}
}
// set additional template `data` values
// set additional template `data` properties
var args = data.args;
if ((data.firstArg = /^[^,]+/.exec(args)[0]) != 'collection' || !data.arrayBranch.inLoop) {
data.arrayBranch = null;
@@ -1055,8 +1055,6 @@
var ctor = value.constructor;
switch (className) {
case boolClass:
return new ctor(value == true);
case dateClass:
return new ctor(+value);