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 with 3 additions and 2 deletions.
  1. +3 −2 jquery/jquery.js
@@ -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.
You can’t perform that action at this time.