Commit e2c2a939 authored by John Resig's avatar John Resig

Added document.ready shortcut to $().

parent 414d0599
...@@ -18,6 +18,10 @@ window.undefined = window.undefined; ...@@ -18,6 +18,10 @@ window.undefined = window.undefined;
*/ */
function jQuery(a,c) { 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 // Make sure t hat a selection was provided
a = a || jQuery.context || document; a = a || jQuery.context || document;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment