mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Update CommonJS module registration to check to see if define is a function instead of just not undefined.
This commit is contained in:
parent
dfa5707306
commit
9029dc02a2
@ -887,7 +887,7 @@ function doScrollCheck() {
|
||||
}
|
||||
|
||||
// Expose jQuery as an Asynchronous Module
|
||||
if ( typeof define !== "undefined" ) {
|
||||
if ( typeof define === "function" ) {
|
||||
define( "jquery", [], function () { return jQuery; } );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user