diff options
author | jeresig <jeresig@gmail.com> | 2009-12-16 23:09:55 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-16 23:09:55 -0500 |
commit | 9a0174b057ae58735c3c5f595e420c7bb1db038c (patch) | |
tree | b1637cf5b112a4d830ba3dbb7cc5693c62e4f6ec /src | |
parent | de659859333c4e1a7840cc8d43765f47fcf53e9f (diff) | |
download | jquery-9a0174b057ae58735c3c5f595e420c7bb1db038c.tar.gz jquery-9a0174b057ae58735c3c5f595e420c7bb1db038c.zip |
Moved readyList check.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); } |