mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
.remove() is no longer destructive (so that appendTo can be used later).
This commit is contained in:
parent
fde7edc456
commit
f197c7469f
5
jquery/jquery.js
vendored
5
jquery/jquery.js
vendored
@ -173,8 +173,9 @@ jQuery.fn = jQuery.prototype = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
remove: function() {
|
remove: function() {
|
||||||
this.each(function(){this.parentNode.removeChild( this );});
|
return this.each(function(){
|
||||||
return this.pushStack( [] );
|
this.parentNode.removeChild( this );
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
wrap: function() {
|
wrap: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user