X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=0c00829f6840ee6eb8919a227e7bfcb8d603dd51;hb=83b43a1e927d6b260f35f75bc2c3d177f271be93;hp=5780ba76b38170727434ff4e135445aea9eb432e;hpb=5adf740a1522c18504b66a7d67ab23b00aad34db;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 5780ba7..0c00829 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 @@ -1402,12 +1402,12 @@ jQuery.extend({ curCSS: function(elem, prop, force) { var ret; - + if (prop == "opacity" && jQuery.browser.msie) return jQuery.attr(elem.style, "opacity"); - + if (prop == "float" || prop == "cssFloat") - prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; + prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; if (!force && elem.style[prop]) ret = elem.style[prop]; @@ -1431,10 +1431,8 @@ jQuery.extend({ }); } else if (elem.currentStyle) { - var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; - } return ret; @@ -1472,7 +1470,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 +1493,7 @@ jQuery.extend({ } - arg = []; - for (var i=0, l=div.childNodes.length; i