From f197c7469f43c02bcbc65f2f41e2b419f0379700 Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 5 Jul 2006 02:09:38 +0000 Subject: [PATCH 1/1] .remove() is no longer destructive (so that appendTo can be used later). --- jquery/jquery.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() { -- 1.7.10.4