Update CommonJS module registration to check to see if define is a function instead of just not undefined.

This commit is contained in:
Colin Snover 2010-12-29 23:58:03 -06:00
parent dfa5707306
commit 9029dc02a2

View file

@ -887,7 +887,7 @@ function doScrollCheck() {
} }
// Expose jQuery as an Asynchronous Module // Expose jQuery as an Asynchronous Module
if ( typeof define !== "undefined" ) { if ( typeof define === "function" ) {
define( "jquery", [], function () { return jQuery; } ); define( "jquery", [], function () { return jQuery; } );
} }