| 1 |
define( [ |
| 2 |
"../core" |
| 3 |
], function( jQuery ) { |
| 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 |
// (trac-7102#comment:10, https://github.com/jquery/jquery/pull/557) |
| 29 |
// and CommonJS for browser emulators (trac-13566) |
| 30 |
if ( typeof noGlobal === "undefined" ) { |
| 31 |
window.jQuery = window.$ = jQuery; |
| 32 |
} |
| 33 |
|
| 34 |
} ); |