Skip to content
Permalink
Browse files
Moved readyList check.
  • Loading branch information
jeresig committed Dec 17, 2009
1 parent de65985 commit 9a0174b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -224,12 +224,12 @@ jQuery.fn = jQuery.prototype = {
jQuery.bindReady();

// If the DOM is already ready
if ( jQuery.isReady && !readyList ) {
if ( jQuery.isReady ) {
// Execute the function immediately
fn.call( document, jQuery );

// Otherwise, remember the function for later
} else {
} else if ( readyList ) {
// Add the function to the wait list
readyList.push( fn );
}

0 comments on commit 9a0174b

Please sign in to comment.