Commit 9a0174b0 authored by jeresig's avatar jeresig

Moved readyList check.

parent de659859
...@@ -224,12 +224,12 @@ jQuery.fn = jQuery.prototype = { ...@@ -224,12 +224,12 @@ jQuery.fn = jQuery.prototype = {
jQuery.bindReady(); jQuery.bindReady();
// If the DOM is already ready // If the DOM is already ready
if ( jQuery.isReady && !readyList ) { if ( jQuery.isReady ) {
// Execute the function immediately // Execute the function immediately
fn.call( document, jQuery ); fn.call( document, jQuery );
// Otherwise, remember the function for later // Otherwise, remember the function for later
} else { } else if ( readyList ) {
// Add the function to the wait list // Add the function to the wait list
readyList.push( fn ); readyList.push( fn );
} }
......
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