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 a new issue