.remove() is no longer destructive (so that appendTo can be used later).
[jquery.git] / jquery / jquery.js
index 06d7504..c24e794 100644 (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() {
@@ -271,7 +272,7 @@ jQuery.fn = jQuery.prototype = {
        },
        
        parent: function(a) {
-               var ret = jQuery.map(this.cur,"d.parentNode");
+               var ret = jQuery.map(this.cur,"a.parentNode");
                if ( a ) ret = jQuery.filter(a,ret).r;
                return this.pushStack(ret);
        },