mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: Closes #3666. Removed old code.
This commit is contained in:
parent
53e9fb9496
commit
5459180728
@ -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));
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user