A speedup for .remove() (which also speeds up .html()). Fixes #4178.
This commit is contained in:
parent
1ac087f6f9
commit
3e46bce751
1 changed files with 1 additions and 1 deletions
|
@ -1234,7 +1234,7 @@ jQuery.each({
|
|||
|
||||
empty: function() {
|
||||
// Remove element nodes and prevent memory leaks
|
||||
jQuery( ">*", this ).remove();
|
||||
jQuery(this).children().remove();
|
||||
|
||||
// Remove any remaining nodes
|
||||
while ( this.firstChild )
|
||||
|
|
Loading…
Reference in a new issue