Skip to content
Permalink
Browse files

Make sure that document ready events, inside a document ready, are ad…

…ded to the queue rather than executing immediately. Fixes #5261.
  • Loading branch information
jeresig committed Dec 9, 2009
1 parent 4b70f00 commit 5e2163085cd210767d93416d78b2dc47c8abd912
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );

0 comments on commit 5e21630

Please sign in to comment.
You can’t perform that action at this time.