X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=c24e7949ea5887b469a2b42520d6ac91e4f606b7;hb=f197c7469f43c02bcbc65f2f41e2b419f0379700;hp=06d75045f74fe3bca8b2bb595ff609b49dbe46c7;hpb=f96c860bbd754f64ccc427a7308f4b3faf2f2814;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index 06d7504..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() { @@ -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); },