From: jeresig Date: Thu, 17 Dec 2009 04:09:55 +0000 (-0500) Subject: Moved readyList check. X-Git-Tag: 1.4a2~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9a0174b057ae58735c3c5f595e420c7bb1db038c;p=jquery.git Moved readyList check. --- diff --git a/src/core.js b/src/core.js index 0d5588c26..8f81c520e 100644 --- a/src/core.js +++ b/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 ); }