X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=e81b82b517c62a88296b9a28417d2dcd44fbd6a4;hb=7d0a84193f539d85267d1458aba35a42d7dbd03b;hp=48d7447f4b802f0cae71c8e1ad6a6ed78b4f2a7e;hpb=a6886d0904320f6eeb05bc85d98550c74cb0c088;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 48d7447..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 @@ -1495,7 +1495,7 @@ jQuery.extend({ } - arg = jQuery.makeArray( div.childNodes[i] ); + arg = jQuery.makeArray( div.childNodes ); } if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )