From 0bb37623971a0617410a0d98b4b45a34151a125b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 26 Oct 2013 00:25:09 -0700 Subject: [PATCH] Simplify environment detections. --- lodash.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index b2fba83e6..9d6b6a682 100644 --- a/lodash.js +++ b/lodash.js @@ -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 = {};