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();
|
||||
|
||||
// If the DOM is already ready
|
||||
if ( jQuery.isReady ) {
|
||||
if ( jQuery.isReady && !readyList ) {
|
||||
// Execute the function immediately
|
||||
fn.call( document, jQuery );
|
||||
|
||||
|
|
Loading…
Reference in a new issue