Created
September 4, 2019 00:02
-
-
Save jsmpros/aea1a60f8e159ff0b8427b1a4313213a to your computer and use it in GitHub Desktop.
Hides jQuery from the global namespace when loaded as a module in RequireJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://requirejs.org/docs/jquery.html#noconflictmap | |
define(['jquery'], function (jq) { | |
return jq.noConflict( true ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment