Remove more code from the Underscore build.

This commit is contained in:
John-David Dalton
2014-02-25 08:44:33 -08:00
parent 818c6711d8
commit e677161e49
2 changed files with 33 additions and 38 deletions

View File

@@ -950,18 +950,13 @@
isPartial = bitmask & PARTIAL_FLAG,
isPartialRight = bitmask & PARTIAL_RIGHT_FLAG;
if (!isBindKey && !isFunction(func)) {
if (!isFunction(func)) {
throw new TypeError;
}
if (isPartial && !partialArgs.length) {
bitmask &= ~PARTIAL_FLAG;
isPartial = partialArgs = false;
}
if (arity == null) {
arity = isBindKey ? 0 : func.length;
} else if (arity < 0) {
arity = 0;
}
if (isPartial) {
partialHolders = getHolders(partialArgs);
}