mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Make sure that document ready events, inside a document ready, are added to the queue rather than executing immediately. Fixes #5261.
This commit is contained in:
parent
4b70f006f5
commit
5e2163085c
@ -237,7 +237,7 @@ jQuery.fn = jQuery.prototype = {
|
|||||||
jQuery.bindReady();
|
jQuery.bindReady();
|
||||||
|
|
||||||
// If the DOM is already ready
|
// If the DOM is already ready
|
||||||
if ( jQuery.isReady ) {
|
if ( jQuery.isReady && !readyList ) {
|
||||||
// Execute the function immediately
|
// Execute the function immediately
|
||||||
fn.call( document, jQuery );
|
fn.call( document, jQuery );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user