git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfa5707
)
Update CommonJS module registration to check to see if define is a function instead...
author
Colin Snover
<github.com@zetafleet.com>
Thu, 30 Dec 2010 05:58:03 +0000
(23:58 -0600)
committer
Colin Snover
<github.com@zetafleet.com>
Thu, 30 Dec 2010 05:58:03 +0000
(23:58 -0600)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
e75c86f
..
4da1212
100644
(file)
--- 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; } );
}