mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Moved readyList check.
This commit is contained in:
parent
de65985933
commit
9a0174b057
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user