Skip to content
Permalink
Browse files
.remove() is no longer destructive (so that appendTo can be used later).
  • Loading branch information
jeresig committed Jul 5, 2006
1 parent fde7edc commit f197c74
Showing 1 changed file with 3 additions and 2 deletions.
@@ -173,8 +173,9 @@ jQuery.fn = jQuery.prototype = {
});
},
remove: function() {
this.each(function(){this.parentNode.removeChild( this );});
return this.pushStack( [] );
return this.each(function(){
this.parentNode.removeChild( this );
});
},

wrap: function() {

0 comments on commit f197c74

Please sign in to comment.