From 5e2163085cd210767d93416d78b2dc47c8abd912 Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 9 Dec 2009 13:45:06 -0800 Subject: [PATCH] Make sure that document ready events, inside a document ready, are added to the queue rather than executing immediately. Fixes #5261. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 0a5bd53..e0db81d 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 ); -- 1.7.10.4