3 ms·
// HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } Calling jQ
by aristus 17y ago
// HANDLE: $(function)
// Shortcut for document ready
} else if ( jQuery.isFunction( selector ) ) {
return rootjQuery.ready( selector );
}
Calling jQuery(fn) twice will trigger the .ready() call twice. Apparently they are stepping on each other.