mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Remove unused funcClass variable from compiled functions.
Former-commit-id: f47b8e412b5151e69a3ab78f03243c461b5ab072
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
'collection',
|
||||
'concat',
|
||||
'ctor',
|
||||
'funcClass',
|
||||
'hasOwnProperty',
|
||||
'identity',
|
||||
'index',
|
||||
|
||||
16
lodash.js
16
lodash.js
@@ -662,18 +662,18 @@
|
||||
// create the function factory
|
||||
var factory = Function(
|
||||
'arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn, ' +
|
||||
'funcClass, hasOwnProperty, identity, indexOf, isArguments, isArray, ' +
|
||||
'isFunction, isPlainObject, iteratorBind, objectClass, objectTypes, ' +
|
||||
'nativeKeys, propertyIsEnumerable, slice, stringClass, toString',
|
||||
'hasOwnProperty, identity, indexOf, isArguments, isArray, isFunction, ' +
|
||||
'isPlainObject, iteratorBind, objectClass, objectTypes, nativeKeys, ' +
|
||||
'propertyIsEnumerable, slice, stringClass, toString',
|
||||
'var callee = function(' + args + ') {\n' + iteratorTemplate(data) + '\n};\n' +
|
||||
'return callee'
|
||||
);
|
||||
// return the compiled function
|
||||
return factory(
|
||||
arrayLikeClasses, ArrayProto, bind, compareAscending, concat, forIn,
|
||||
funcClass, hasOwnProperty, identity, indexOf, isArguments, isArray,
|
||||
isFunction, isPlainObject, iteratorBind, objectClass, objectTypes,
|
||||
nativeKeys, propertyIsEnumerable, slice, stringClass, toString
|
||||
hasOwnProperty, identity, indexOf, isArguments, isArray, isFunction,
|
||||
isPlainObject, iteratorBind, objectClass, objectTypes, nativeKeys,
|
||||
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
|
||||
* @param {Mixed} value The value to check.
|
||||
|
||||
Reference in New Issue
Block a user