.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 a new issue