From 7514ec480b233fda6be2b5d9e2439f5d15796eb4 Mon Sep 17 00:00:00 2001 From: Szymon Dzialowski Date: Thu, 8 Mar 2018 23:58:29 +0000 Subject: [PATCH 1/2] More natural condition (third place) --- templates/returnExports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/returnExports.js b/templates/returnExports.js index 3c025a8..3385f49 100644 --- a/templates/returnExports.js +++ b/templates/returnExports.js @@ -27,7 +27,7 @@ // Browser globals (root is window) root.returnExports = factory(root.b); } -}(typeof self !== 'undefined' ? self : this, function (b) { +}(typeof self === 'undefined' ? this : self, function (b) { // Use b in some fashion. // Just return a value to define the module export. From 66e6145ef6fe681486dd2f5adfb5f97d0506cb71 Mon Sep 17 00:00:00 2001 From: Szymon Dzialowski Date: Fri, 9 Mar 2018 00:03:31 +0000 Subject: [PATCH 2/2] More natural condition (also here) --- templates/returnExports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/returnExports.js b/templates/returnExports.js index 3385f49..a5f54a5 100644 --- a/templates/returnExports.js +++ b/templates/returnExports.js @@ -51,7 +51,7 @@ // Browser globals (root is window) root.returnExports = factory(); } -}(typeof self !== 'undefined' ? self : this, function () { +}(typeof self === 'undefined' ? this : self, function () { // Just return a value to define the module export. // This example returns an object, but the module