mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
jquery core: closes #3159. remove() would unbind form.elements instead of a form.
This commit is contained in:
parent
b36fe4686c
commit
a33f85e691
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user