X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=f54ee30a500d6fe330f5125a135213784d8c78d4;hb=c47f6f8f523c8add478fbf5570a67015426f5b86;hp=2f3bc02e53442634c85ceb08d9b86f4abddd14fc;hpb=6c5bfffd20797a043355958b1f0d27717ebd20e7;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 2f3bc02..f54ee30 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 ] ); }); - }); } };