Skip to content
Browse files

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

  • Loading branch information...
1 parent 1ac087f commit 3e46bce751f062775be95a6bef3cf53096a3ed21 @jeresig jeresig committed Feb 18, 2009
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 )

0 comments on commit 3e46bce

Please sign in to comment.
Something went wrong with that request. Please try again.