From: John Resig Date: Wed, 5 Jul 2006 02:09:38 +0000 (+0000) Subject: .remove() is no longer destructive (so that appendTo can be used later). X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=f197c7469f43c02bcbc65f2f41e2b419f0379700;p=jquery.git .remove() is no longer destructive (so that appendTo can be used later). --- diff --git a/jquery/jquery.js b/jquery/jquery.js index 7eddb39..c24e794 100644 --- a/jquery/jquery.js +++ b/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() {