jquery core: Closes #3666. Removed old code.

This commit is contained in:
Ariel Flesler 2008-12-25 17:37:58 +00:00
parent 53e9fb9496
commit 5459180728

View File

@ -81,7 +81,7 @@ jQuery.fn = jQuery.prototype = {
// HANDLE: $(function)
// Shortcut for document ready
} else if ( jQuery.isFunction( selector ) )
return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector );
return jQuery( document ).ready( selector );
return this.setArray(jQuery.makeArray(selector));
},