Blame view
app/bower_components/jquery/src/exports/global.js
608 Bytes
87c93a029
|
1 2 3 4 5 |
define( [ "../core" ], function( jQuery, noGlobal ) { "use strict"; |
f986e111b
|
6 7 |
var |
87c93a029
|
8 |
|
f986e111b
|
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
// 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; }; |
87c93a029
|
26 27 |
// Expose jQuery and $ identifiers, even in AMD // (#7102#comment:10, https://github.com/jquery/jquery/pull/557) |
f986e111b
|
28 |
// and CommonJS for browser emulators (#13566) |
87c93a029
|
29 |
if ( !noGlobal ) { |
f986e111b
|
30 31 |
window.jQuery = window.$ = jQuery; } |
87c93a029
|
32 |
} ); |