mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Group clearTimeout and setTimeout.
This commit is contained in:
@@ -1288,15 +1288,17 @@
|
|||||||
Reflect = context.Reflect,
|
Reflect = context.Reflect,
|
||||||
Symbol = context.Symbol,
|
Symbol = context.Symbol,
|
||||||
Uint8Array = context.Uint8Array,
|
Uint8Array = context.Uint8Array,
|
||||||
clearTimeout = function(id) { return context.clearTimeout.call(root, id); },
|
|
||||||
enumerate = Reflect ? Reflect.enumerate : undefined,
|
enumerate = Reflect ? Reflect.enumerate : undefined,
|
||||||
getOwnPropertySymbols = Object.getOwnPropertySymbols,
|
getOwnPropertySymbols = Object.getOwnPropertySymbols,
|
||||||
iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined,
|
iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined,
|
||||||
objectCreate = Object.create,
|
objectCreate = Object.create,
|
||||||
propertyIsEnumerable = objectProto.propertyIsEnumerable,
|
propertyIsEnumerable = objectProto.propertyIsEnumerable,
|
||||||
setTimeout = function(func, wait) { return context.setTimeout.call(root, func, wait); },
|
|
||||||
splice = arrayProto.splice;
|
splice = arrayProto.splice;
|
||||||
|
|
||||||
|
/** Built-in method references that are mockable. */
|
||||||
|
var clearTimeout = function(id) { return context.clearTimeout.call(root, id); },
|
||||||
|
setTimeout = function(func, wait) { return context.setTimeout.call(root, func, wait); };
|
||||||
|
|
||||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||||
var nativeCeil = Math.ceil,
|
var nativeCeil = Math.ceil,
|
||||||
nativeFloor = Math.floor,
|
nativeFloor = Math.floor,
|
||||||
|
|||||||
Reference in New Issue
Block a user