From 02c4d60861570f082e13b4494576b665591929b6 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 12 Jul 2016 15:15:29 -0700 Subject: [PATCH] Remove `thisGlobal` use. --- lodash.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index 802ee06dd..f2a641865 100644 --- a/lodash.js +++ b/lodash.js @@ -366,11 +366,8 @@ /** Detect free variable `self`. */ var freeSelf = checkGlobal(typeof self == 'object' && self); - /** Detect `this` as the global object. */ - var thisGlobal = checkGlobal(typeof this == 'object' && this); - /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || thisGlobal || Function('return this')(); + var root = freeGlobal || freeSelf || Function('return this')(); /** Detect free variable `exports`. */ var freeExports = freeGlobal && typeof exports == 'object' && exports;