git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ac087f
)
A speedup for .remove() (which also speeds up .html()). Fixes #4178.
author
John Resig
<jeresig@gmail.com>
Wed, 18 Feb 2009 02:40:55 +0000
(
02:40
+0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 18 Feb 2009 02:40:55 +0000
(
02:40
+0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
d78ec7e
..
c7d10f3
100644
(file)
--- a/
src/core.js
+++ b/
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 )