X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=0ff52fa51cae7c27a954e1a517ac1f0137876b75;hb=e647a8a1f63864aa350e8c24926170d0fdff653c;hp=2f3bc02e53442634c85ceb08d9b86f4abddd14fc;hpb=a2482e5e87558edb2be67fd6e7369bb62168fde9;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 2f3bc02..0ff52fa 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1171,9 +1171,14 @@ jQuery.fn = jQuery.prototype = { obj = this.getElementsByTagName("tbody")[0] || this.appendChild(document.createElement("tbody")); jQuery.each( a, function(){ - fn.apply( obj, [ clone ? this.cloneNode(true) : this ] ); + if ( jQuery.nodeName(this, "script") ) { + if ( this.src ) + jQuery.ajax({ url: this.src, async: false, dataType: "script" }); + else + (new Function( this.text || this.textContent || this.innerHTML || "" ))(); + } else + fn.apply( obj, [ clone ? this.cloneNode(true) : this ] ); }); - }); } }; @@ -1466,6 +1471,9 @@ jQuery.extend({ ret = c && c.getPropertyValue(prop) || ""; }); + if ( prop == "opacity" && ret == "" ) + ret = "1"; + } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp];