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

This commit is contained in:
John Resig 2006-07-05 02:09:38 +00:00
parent fde7edc456
commit f197c7469f

5
jquery/jquery.js vendored
View file

@ -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() {