Ensure underscore builds use basicFlatten.

Former-commit-id: 148f37a27467391e9719fb098acb75ebac256f1b
This commit is contained in:
John-David Dalton
2013-07-13 23:24:57 -07:00
parent 740981376d
commit b87fec554f
9 changed files with 187 additions and 187 deletions

View File

@@ -988,7 +988,7 @@
var value = array[index];
// recursively flatten arrays (susceptible to call stack limits)
if (value && typeof value == 'object' && (isArray(value) || isArguments(value))) {
push.apply(result, isShallow ? value : basicFlatten(value));
push.apply(result, isShallow ? value : basicFlatten(value, isShallow, isArgArrays));
} else if (!isArgArrays) {
result.push(value);
}