amd.js 1006 B

123456789101112131415161718192021222324
  1. define([
  2. "../core"
  3. ], function( jQuery ) {
  4. // Register as a named AMD module, since jQuery can be concatenated with other
  5. // files that may use define, but not via a proper concatenation script that
  6. // understands anonymous AMD modules. A named AMD is safest and most robust
  7. // way to register. Lowercase jquery is used because AMD module names are
  8. // derived from file names, and jQuery is normally delivered in a lowercase
  9. // file name. Do this after creating the global so that if an AMD module wants
  10. // to call noConflict to hide this version of jQuery, it will work.
  11. // Note that for maximum portability, libraries that are not jQuery should
  12. // declare themselves as anonymous modules, and avoid setting a global if an
  13. // AMD loader is present. jQuery is a special case. For more information, see
  14. // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
  15. if ( typeof define === "function" && define.amd ) {
  16. define( "jquery", [], function() {
  17. return jQuery;
  18. });
  19. }
  20. });