X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=061d86c89e001b2ba434fa3ed28d22bae74470e2;hb=ab2d10c6d62c4d2b834337e238cf2a618eec4412;hp=48740377ce0c991a39a81f318ee57ec8a433f986;hpb=9791855ea91988e9ff02063e0c5ece759d8ba898;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 4874037..061d86c 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1255,7 +1255,7 @@ jQuery.extend({ // is the only cross-browser way to do this. --John isFunction: function( fn ) { return !!fn && typeof fn != "string" && !fn.nodeName && - typeof fn[0] == "undefined" && /function/i.test( fn + "" ); + fn.constructor != Array && /function/i.test( fn + "" ); }, // check if an element is in a XML document @@ -1495,9 +1495,7 @@ jQuery.extend({ } - arg = []; - for (var i=0, l=div.childNodes.length; i