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:
b36fe46
)
jquery core: closes #3159. remove() would unbind form.elements instead of a form.
author
Ariel Flesler
<aflesler@gmail.com>
Tue, 15 Jul 2008 15:58:01 +0000
(15:58 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Tue, 15 Jul 2008 15:58:01 +0000
(15:58 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
3a759d5
..
fd19d75
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-1309,7
+1309,7
@@
jQuery.each({
remove: function( selector ) {
if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
// Prevent memory leaks
- jQuery( "*", this ).add(this).each(function(){
+ jQuery( "*", this ).add([this]).each(function(){
jQuery.event.remove(this);
jQuery.removeData(this);
});