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 0a5bd53..e0db81d 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 );