]> source.dussan.org Git - jquery.git/commitdiff
Make sure that document ready events, inside a document ready, are added to the queue...
authorJohn Resig <jeresig@gmail.com>
Wed, 9 Dec 2009 21:45:06 +0000 (13:45 -0800)
committerJohn Resig <jeresig@gmail.com>
Wed, 9 Dec 2009 21:45:06 +0000 (13:45 -0800)
src/core.js

index 0a5bd53ce798a2a77c6af2ed434397a1da3416c7..e0db81d8693852950f9dfe6220ee8066781c5b7a 100644 (file)
@@ -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 );