X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=325f303a8316d399a654c33f33926ee43fd34e62;hb=0368606c081fd15dfbcd8509734ef63c58a6b008;hp=00e31201c8c6fa5d01a7bc50672c3da237009c3a;hpb=e3c4e5789743eecb3cbe2b626f3a5f09c616ee4b;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 {