global.js 706 B

12345678910111213141516171819202122232425262728293031323334
  1. /* ExcludeStart */
  2. // This file is included in a different way from all the others
  3. // so the "use strict" pragma is not needed.
  4. /* eslint strict: "off" */
  5. /* ExcludeEnd */
  6. var
  7. // Map over jQuery in case of overwrite
  8. _jQuery = window.jQuery,
  9. // Map over the $ in case of overwrite
  10. _$ = window.$;
  11. jQuery.noConflict = function( deep ) {
  12. if ( window.$ === jQuery ) {
  13. window.$ = _$;
  14. }
  15. if ( deep && window.jQuery === jQuery ) {
  16. window.jQuery = _jQuery;
  17. }
  18. return jQuery;
  19. };
  20. // Expose jQuery and $ identifiers, even in AMD
  21. // (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
  22. // and CommonJS for browser emulators (#13566)
  23. if ( !noGlobal ) {
  24. window.jQuery = window.$ = jQuery;
  25. }