Skip to content
Permalink
Browse files

Moved readyList check.

  • Loading branch information
jeresig committed Dec 17, 2009
1 parent de65985 commit 9a0174b057ae58735c3c5f595e420c7bb1db038c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core.js
@@ -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.
You can’t perform that action at this time.