Added document.ready shortcut to $().
This commit is contained in:
parent
414d059941
commit
e2c2a9392e
1 changed files with 4 additions and 0 deletions
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 a new issue