X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=8f81c520ecba388156ae8f7f9a9a007a255b1286;hb=9a0174b057ae58735c3c5f595e420c7bb1db038c;hp=0d5588c269b4eecadc2e81c31afcabc73c32dda0;hpb=9997620420ec0baf7dba8ce9dee0f19e616e1bc4;p=jquery.git diff --git a/src/core.js b/src/core.js index 0d5588c..8f81c52 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 ); }