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 f197c7469f43c02bcbc65f2f41e2b419f0379700
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.