Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A speedup for .remove() (which also speeds up .html()). Fixes #4178.

  • Loading branch information...
commit 3e46bce751f062775be95a6bef3cf53096a3ed21 1 parent 1ac087f
@jeresig jeresig authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/core.js
View
2  src/core.js
@@ -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 )
Please sign in to comment.
Something went wrong with that request. Please try again.