blob: 2cc9577d78950ba9b59a2305d0733450338585a6 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001define( [
2 "../core"
Renovate botf591dcf2023-12-30 14:13:54 +00003], function( jQuery ) {
Copybara botbe50d492023-11-30 00:16:42 +01004
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)
Renovate botf591dcf2023-12-30 14:13:54 +000030if ( typeof noGlobal === "undefined" ) {
Copybara botbe50d492023-11-30 00:16:42 +010031 window.jQuery = window.$ = jQuery;
32}
33
34} );