mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 21:18:33 -05:00
.remove() is no longer destructive (so that appendTo can be used later).
This commit is contained in:
5
jquery/jquery.js
vendored
5
jquery/jquery.js
vendored
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user