Commit a33f85e6 authored by Ariel Flesler's avatar Ariel Flesler

jquery core: closes #3159. remove() would unbind form.elements instead of a form.

parent b36fe468
......@@ -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);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment