Commit f197c746 authored by John Resig's avatar John Resig

.remove() is no longer destructive (so that appendTo can be used later).

parent fde7edc4
...@@ -173,8 +173,9 @@ jQuery.fn = jQuery.prototype = { ...@@ -173,8 +173,9 @@ jQuery.fn = jQuery.prototype = {
}); });
}, },
remove: function() { remove: function() {
this.each(function(){this.parentNode.removeChild( this );}); return this.each(function(){
return this.pushStack( [] ); this.parentNode.removeChild( this );
});
}, },
wrap: function() { wrap: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment