Simplify environment detections.

This commit is contained in:
John-David Dalton
2013-10-26 00:25:09 -07:00
parent fbd6e21152
commit 0bb3762397

View File

@@ -559,9 +559,8 @@
return false;
}());
/** Detect various environments */
var isIeOpera = reNative.test(context.attachEvent),
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
/** Used to enable optimizations for V8 */
var isV8 = nativeBind && !/\n/.test(nativeBind) && !reNative.test(context.attachEvent);
/** Used to lookup a built-in constructor by [[Class]] */
var ctorByClass = {};