X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=aa2582af765ebe15a42edbaa6a946fe6d2d58e0a;hb=e9917ab8373b5e79c2a4315ad7f75be2cecf5ae1;hp=996ace8664eafa837c71b1ce382e6eace1deaca0;hpb=4f92b3430119e734dea39ab4f4636e64d2c26903;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 996ace8..aa2582a 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -31,7 +31,7 @@ window.undefined = window.undefined; var jQuery = function(a,c) { // Shortcut for document ready (because $(document).each() is silly) - if ( a && typeof a == "function" && jQuery.fn.ready ) + if ( a && typeof a == "function" && jQuery.fn.ready && !a.nodeType && a[0] == undefined ) // Safari reports typeof on DOM NodeLists as a function return jQuery(document).ready(a); // Make sure that a selection was provided