Skip to content
Permalink
Browse files
jquery core: closes #3159. remove() would unbind form.elements instea…
…d of a form.
  • Loading branch information
flesler committed Jul 15, 2008
1 parent b36fe46 commit a33f85e691e07f03f724b2bd3c6948b346d33ee6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);
});

0 comments on commit a33f85e

Please sign in to comment.