Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Feb 18, 2009
1 parent 1ac087f commit 3e46bce751f062775be95a6bef3cf53096a3ed21
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.
You can’t perform that action at this time.