Mercurial > nebulaweb3
comparison default/node_modules/jquery/src/exports/global.js @ 0:1d038bc9b3d2 default tip
Up:default
author | Liny <dev@neowd.com> |
---|---|
date | Sat, 31 May 2025 09:21:51 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1d038bc9b3d2 |
---|---|
1 define( [ | |
2 "../core" | |
3 ], function( jQuery, noGlobal ) { | |
4 | |
5 "use strict"; | |
6 | |
7 var | |
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 | |
15 jQuery.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) | |
30 if ( !noGlobal ) { | |
31 window.jQuery = window.$ = jQuery; | |
32 } | |
33 | |
34 } ); |