Update CommonJS module registration to check to see if define is a function instead...
authorColin Snover <github.com@zetafleet.com>
Thu, 30 Dec 2010 05:58:03 +0000 (23:58 -0600)
committerColin Snover <github.com@zetafleet.com>
Thu, 30 Dec 2010 05:58:03 +0000 (23:58 -0600)
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; } );
 }