X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=325f303a8316d399a654c33f33926ee43fd34e62;hb=974b5aeab7a3788ff5fb9db87b9567784e0249fc;hp=00e31201c8c6fa5d01a7bc50672c3da237009c3a;hpb=9dc6e0c572b9c809a3a4c123071d96d48a01dd1c;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 00e3120..325f303 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -248,10 +248,8 @@ jQuery.fn.extend({ } else if ( jQuery.isFunction( value ) ) { this.each(function(i){ - var self = jQuery(this), old = self.html(); - self.empty().append(function(){ - return value.call( this, i, old ); - }); + var self = jQuery(this); + self.html( value.call(this, i, self.html()) ); }); } else {