Commit 5e216308 authored by John Resig's avatar John Resig

Make sure that document ready events, inside a document ready, are added to...

Make sure that document ready events, inside a document ready, are added to the queue rather than executing immediately. Fixes #5261.
parent 4b70f006
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment