From 9029dc02a234ad9699513f81acd1423f9c2c4e30 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 29 Dec 2010 23:58:03 -0600 Subject: [PATCH] Update CommonJS module registration to check to see if define is a function instead of just not undefined. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } ); } -- 1.7.10.4