You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
Scripts should each be wrapped in immediately invoked function expressions (IIFEs) on concatenation as mentioned in Effective Javascript by David Herman (chapter 1).
This would avoid several problems, e.g. considering scopes and usage of "use strict";
varcontent=dom5.getTextContent(sn).trim();// wrap content in immediately invoked function expression (IIFE)letiifeContent='(function(){\n'+content+'\n})();'contents.push(iifeContent);
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Scripts should each be wrapped in immediately invoked function expressions (IIFEs) on concatenation as mentioned in Effective Javascript by David Herman (chapter 1).
This would avoid several problems, e.g. considering scopes and usage of "use strict";
So instead of:
The concatenated file should look like:
Implementation should be easy:
Thank you in advance!
The text was updated successfully, but these errors were encountered: