X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=e81b82b517c62a88296b9a28417d2dcd44fbd6a4;hb=7d0a84193f539d85267d1458aba35a42d7dbd03b;hp=5780ba76b38170727434ff4e135445aea9eb432e;hpb=5adf740a1522c18504b66a7d67ab23b00aad34db;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 5780ba7..e81b82b 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 @@ -1472,7 +1472,7 @@ jQuery.extend({ [0,"",""]; // Go to html and back, then peel off extra wrappers - div.innerHTML = wrap[1] + s + wrap[2]; + div.innerHTML = wrap[1] + arg + wrap[2]; // Move to the right depth while ( wrap[0]-- ) @@ -1495,9 +1495,7 @@ jQuery.extend({ } - arg = []; - for (var i=0, l=div.childNodes.length; i