git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update CommonJS module registration to check to see if define is a function instead...
[jquery.git]
/
src
/
core.js
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; } );
}