mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Simplify environment detections.
This commit is contained in:
@@ -559,9 +559,8 @@
|
|||||||
return false;
|
return false;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/** Detect various environments */
|
/** Used to enable optimizations for V8 */
|
||||||
var isIeOpera = reNative.test(context.attachEvent),
|
var isV8 = nativeBind && !/\n/.test(nativeBind) && !reNative.test(context.attachEvent);
|
||||||
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
|
|
||||||
|
|
||||||
/** Used to lookup a built-in constructor by [[Class]] */
|
/** Used to lookup a built-in constructor by [[Class]] */
|
||||||
var ctorByClass = {};
|
var ctorByClass = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user