From: John Resig Date: Wed, 9 Dec 2009 21:45:06 +0000 (-0800) Subject: Make sure that document ready events, inside a document ready, are added to the queue... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=5e2163085cd210767d93416d78b2dc47c8abd912;p=jquery.git Make sure that document ready events, inside a document ready, are added to the queue rather than executing immediately. Fixes #5261. --- 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 );