From 565b4a0e5bb0cd6ea0e251676ffd249b5388ccf7 Mon Sep 17 00:00:00 2001 From: Federico Soave Date: Sat, 20 Jan 2018 03:10:00 +0100 Subject: [PATCH] [lint] make the outer function a recognizable IIFE --- lib/marked.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/marked.js b/lib/marked.js index ec37bcf8..6838fe03 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -1312,9 +1312,7 @@ if (typeof module !== 'undefined' && typeof exports === 'object') { } else if (typeof define === 'function' && define.amd) { define(function() { return marked; }); } else { - this.marked = marked; + var exp = this || (typeof window !== 'undefined' ? window : global); + exp.marked = marked; } - -}).call(function() { - return this || (typeof window !== 'undefined' ? window : global); -}()); +})();