diff options
author | John Resig <jeresig@gmail.com> | 2009-12-09 13:45:06 -0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-12-09 13:45:06 -0800 |
commit | 5e2163085cd210767d93416d78b2dc47c8abd912 (patch) | |
tree | 26239deaa752b68f0ee9dddb80c22f3cfdc195fa | |
parent | 4b70f006f579fba24a882d80ca67f1971dbb4922 (diff) | |
download | jquery-5e2163085cd210767d93416d78b2dc47c8abd912.tar.gz jquery-5e2163085cd210767d93416d78b2dc47c8abd912.zip |
Make sure that document ready events, inside a document ready, are added to the queue rather than executing immediately. Fixes #5261.
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 0a5bd53ce..e0db81d86 100644 --- a/src/core.js +++ b/src/core.js @@ -237,7 +237,7 @@ jQuery.fn = jQuery.prototype = { jQuery.bindReady(); // If the DOM is already ready - if ( jQuery.isReady ) { + if ( jQuery.isReady && !readyList ) { // Execute the function immediately fn.call( document, jQuery ); |