Register as a CommonJS async module if in that kind of environment. Fixes #7102.
This commit is contained in:
parent
01cba2ecaa
commit
6ffa730721
3 changed files with 35 additions and 23 deletions
|
@ -886,6 +886,11 @@ function doScrollCheck() {
|
|||
jQuery.ready();
|
||||
}
|
||||
|
||||
// Expose jQuery as an Asynchronous Module
|
||||
if ( typeof define !== "undefined" ) {
|
||||
define( "jquery", [], function () { return jQuery; } );
|
||||
}
|
||||
|
||||
// Expose jQuery to the global object
|
||||
return (window.jQuery = window.$ = jQuery);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue