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

@@ -380,7 +380,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);
}
@@ -1379,7 +1379,7 @@
*/
function omit(object) {
var indexOf = getIndexOf(),
props = flatten(nativeSlice.call(arguments, 1)),
props = basicFlatten(arguments, true, false, 1),
result = {};
forIn(object, function(value, key) {
@@ -1445,7 +1445,7 @@
*/
function pick(object) {
var index = -1,
props = flatten(nativeSlice.call(arguments, 1)),
props = basicFlatten(arguments, true, false, 1),
length = props.length,
result = {};
@@ -2546,7 +2546,7 @@
var index = -1,
indexOf = getIndexOf(),
length = array.length,
flattened = flatten(nativeSlice.call(arguments, 1)),
flattened = basicFlatten(arguments, true, true, 1),
result = [];
while (++index < length) {