From 5ac8ffced2d45aaa56817dab3ace54188f49c2c6 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Mon, 15 Oct 2018 17:32:02 +0100 Subject: [PATCH 1/5] Update he.js Corrected typo and new global detection --- src/he.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/he.js b/src/he.js index fe18b70..815dd59 100644 --- a/src/he.js +++ b/src/he.js @@ -1,5 +1,5 @@ /*! https://mths.be/he v<%= version %> by @mathias | MIT license */ -;(function(root) { +(function(root) { // Detect free variables `exports`. var freeExports = typeof exports == 'object' && exports; @@ -352,4 +352,4 @@ root.he = he; } -}(this)); +}((new Function('return this)()); From b512f72e97c40b00f12272f3e6740a0e5b14cb4b Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Mon, 15 Oct 2018 17:33:01 +0100 Subject: [PATCH 2/5] Update he.js Syntax error --- src/he.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/he.js b/src/he.js index 815dd59..429eeeb 100644 --- a/src/he.js +++ b/src/he.js @@ -352,4 +352,4 @@ root.he = he; } -}((new Function('return this)()); +}((new Function('return this))()); From 924ddec6c4176e00a4cf37d2c98c90eab342df62 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Fri, 19 Oct 2018 12:19:34 +0100 Subject: [PATCH 3/5] Update he.js Fix little typo --- src/he.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/he.js b/src/he.js index 429eeeb..5f21ee4 100644 --- a/src/he.js +++ b/src/he.js @@ -352,4 +352,4 @@ root.he = he; } -}((new Function('return this))()); +}((new Function('return this'))()); From ce8b8f3587528706186ac5326a7ad625308a922b Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Fri, 19 Oct 2018 12:23:29 +0100 Subject: [PATCH 4/5] Update he.js And Again reduced the call level --- src/he.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/he.js b/src/he.js index 5f21ee4..ca06a71 100644 --- a/src/he.js +++ b/src/he.js @@ -352,4 +352,4 @@ root.he = he; } -}((new Function('return this'))()); +}(new Function('return this')()); From cc217f6400ca1add5b24553108fa802685788006 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Fri, 19 Oct 2018 12:30:16 +0100 Subject: [PATCH 5/5] Update he.js Final Test else let it be undefined ;) --- src/he.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/he.js b/src/he.js index ca06a71..0296690 100644 --- a/src/he.js +++ b/src/he.js @@ -351,5 +351,4 @@ } else { // in Rhino or a web browser root.he = he; } - -}(new Function('return this')()); +})(new Function('return this')());