Backing out fix for #5803 from 3b50eaca2cd0b1439235e39c4e98a6438e8f55b2.
[jquery.git] / src / manipulation.js
index 00e3120..325f303 100644 (file)
@@ -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 {