mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 21:48:00 -05:00
A speedup for .remove() (which also speeds up .html()). Fixes #4178.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user