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:
de65985
)
Moved readyList check.
author
jeresig
<jeresig@gmail.com>
Thu, 17 Dec 2009 04:09:55 +0000
(23:09 -0500)
committer
jeresig
<jeresig@gmail.com>
Thu, 17 Dec 2009 04:09:55 +0000
(23:09 -0500)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
0d5588c
..
8f81c52
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-224,12
+224,12
@@
jQuery.fn = jQuery.prototype = {
jQuery.bindReady();
// If the DOM is already ready
- if ( jQuery.isReady && !readyList ) {
+ if ( jQuery.isReady ) {
// Execute the function immediately
fn.call( document, jQuery );
// Otherwise, remember the function for later
- } else {
+ } else if ( readyList ) {
// Add the function to the wait list
readyList.push( fn );
}