Update CommonJS module registration to check to see if define is a function instead...
[jquery.git] / src / core.js
index e75c86f..4da1212 100644 (file)
@@ -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; } );
 }