From: Colin Snover Date: Thu, 30 Dec 2010 05:58:03 +0000 (-0600) Subject: Update CommonJS module registration to check to see if define is a function instead... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=9029dc02a234ad9699513f81acd1423f9c2c4e30 Update CommonJS module registration to check to see if define is a function instead of just not undefined. --- diff --git a/src/core.js b/src/core.js index e75c86f..4da1212 100644 --- a/src/core.js +++ b/src/core.js @@ -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; } ); }