X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=996ace8664eafa837c71b1ce382e6eace1deaca0;hb=d6d331696210c10f0502bd0effa0750ded27b420;hp=bdbf97c1fb559613f51753de41350d55469f61df;hpb=0c45d03c70c322825c5532466f9ac1201e79d1d5;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index bdbf97c..996ace8 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 && a.length == undefined ) // Safari reports DOM NodeLists typeof as function + if ( a && typeof a == "function" && jQuery.fn.ready ) return jQuery(document).ready(a); // Make sure that a selection was provided