mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added document.ready shortcut to $().
This commit is contained in:
parent
414d059941
commit
e2c2a9392e
4
jquery/jquery.js
vendored
4
jquery/jquery.js
vendored
@ -18,6 +18,10 @@ window.undefined = window.undefined;
|
||||
*/
|
||||
function jQuery(a,c) {
|
||||
|
||||
// Shortcut for document ready (because $(document).each() is silly)
|
||||
if ( a && a.constructor == Function )
|
||||
return $(document).ready(a);
|
||||
|
||||
// Make sure t hat a selection was provided
|
||||
a = a || jQuery.context || document;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user