mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Remove unused funcClass variable from compiled functions.
Former-commit-id: f47b8e412b5151e69a3ab78f03243c461b5ab072
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
'collection',
|
'collection',
|
||||||
'concat',
|
'concat',
|
||||||
'ctor',
|
'ctor',
|
||||||
'funcClass',
|
|
||||||
'hasOwnProperty',
|
'hasOwnProperty',
|
||||||
'identity',
|
'identity',
|
||||||
'index',
|
'index',
|
||||||
|
|||||||
16
lodash.js
16
lodash.js
@@ -662,18 +662,18 @@
|
|||||||
// create the function factory
|
// create the function factory
|
||||||
var factory = Function(
|
var factory = Function(
|
||||||
'arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn, ' +
|
'arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn, ' +
|
||||||
'funcClass, hasOwnProperty, identity, indexOf, isArguments, isArray, ' +
|
'hasOwnProperty, identity, indexOf, isArguments, isArray, isFunction, ' +
|
||||||
'isFunction, isPlainObject, iteratorBind, objectClass, objectTypes, ' +
|
'isPlainObject, iteratorBind, objectClass, objectTypes, nativeKeys, ' +
|
||||||
'nativeKeys, propertyIsEnumerable, slice, stringClass, toString',
|
'propertyIsEnumerable, slice, stringClass, toString',
|
||||||
'var callee = function(' + args + ') {\n' + iteratorTemplate(data) + '\n};\n' +
|
'var callee = function(' + args + ') {\n' + iteratorTemplate(data) + '\n};\n' +
|
||||||
'return callee'
|
'return callee'
|
||||||
);
|
);
|
||||||
// return the compiled function
|
// return the compiled function
|
||||||
return factory(
|
return factory(
|
||||||
arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn,
|
arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn,
|
||||||
funcClass, hasOwnProperty, identity, indexOf, isArguments, isArray,
|
hasOwnProperty, identity, indexOf, isArguments, isArray, isFunction,
|
||||||
isFunction, isPlainObject, iteratorBind, objectClass, objectTypes,
|
isPlainObject, iteratorBind, objectClass, objectTypes, nativeKeys,
|
||||||
nativeKeys, propertyIsEnumerable, slice, stringClass, toString
|
propertyIsEnumerable, slice, stringClass, toString
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -735,7 +735,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is a plain `Object` object with `Object` as its constructor.
|
* Checks if a given `value` is an object created by the `Object` constructor
|
||||||
|
* assuming objects created by the `Object` constructor have no inherited
|
||||||
|
* enumerable properties and that there are no `Object.prototype` extensions.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Mixed} value The value to check.
|
* @param {Mixed} value The value to check.
|
||||||
|
|||||||
Reference in New Issue
Block a user