From 54b8482223288a4d5df41267f3c9235bab06c15e Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 24 Mar 2017 17:12:23 +0100 Subject: add minionlivesmatter --- .../templates/assets/jquery/src/exports/global.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 minionlivesmatter/templates/assets/jquery/src/exports/global.js (limited to 'minionlivesmatter/templates/assets/jquery/src/exports/global.js') diff --git a/minionlivesmatter/templates/assets/jquery/src/exports/global.js b/minionlivesmatter/templates/assets/jquery/src/exports/global.js new file mode 100644 index 0000000..be9cbfb --- /dev/null +++ b/minionlivesmatter/templates/assets/jquery/src/exports/global.js @@ -0,0 +1,26 @@ +var + + // Map over jQuery in case of overwrite + _jQuery = window.jQuery, + + // Map over the $ in case of overwrite + _$ = window.$; + +jQuery.noConflict = function( deep ) { + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; +}; + +// Expose jQuery and $ identifiers, even in AMD +// (#7102#comment:10, https://github.com/jquery/jquery/pull/557) +// and CommonJS for browser emulators (#13566) +if ( !noGlobal ) { + window.jQuery = window.$ = jQuery; +} -- cgit v1.3.1