blob: 460b56e4783035fa9c69765a998cb07b1e9c919a [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001define( [
2 "../core"
3], function( jQuery, noGlobal ) {
4
5"use strict";
6
7var
8
9 // Map over jQuery in case of overwrite
10 _jQuery = window.jQuery,
11
12 // Map over the $ in case of overwrite
13 _$ = window.$;
14
15jQuery.noConflict = function( deep ) {
16 if ( window.$ === jQuery ) {
17 window.$ = _$;
18 }
19
20 if ( deep && window.jQuery === jQuery ) {
21 window.jQuery = _jQuery;
22 }
23
24 return jQuery;
25};
26
27// Expose jQuery and $ identifiers, even in AMD
28// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
29// and CommonJS for browser emulators (#13566)
30if ( !noGlobal ) {
31 window.jQuery = window.$ = jQuery;
32}
33
34} );