Make sure that document ready events, inside a document ready, are added to the queue rather than executing immediately. Fixes #5261.

This commit is contained in:
John Resig 2009-12-09 13:45:06 -08:00
parent 4b70f006f5
commit 5e2163085c

View 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 );