Commit 35c37907 authored by jeresig's avatar jeresig

Simplify the special change/submit event removal logic, per Scott's suggestion...

Simplify the special change/submit event removal logic, per Scott's suggestion in 5267824a.
parent 5267824a
...@@ -677,8 +677,7 @@ if ( !jQuery.support.submitBubbles ) { ...@@ -677,8 +677,7 @@ if ( !jQuery.support.submitBubbles ) {
}, },
teardown: function( namespaces ) { teardown: function( namespaces ) {
jQuery.event.remove( this, "click.specialSubmit" ); jQuery.event.remove( this, ".specialSubmit" );
jQuery.event.remove( this, "keypress.specialSubmit" );
} }
}; };
...@@ -778,9 +777,7 @@ if ( !jQuery.support.changeBubbles ) { ...@@ -778,9 +777,7 @@ if ( !jQuery.support.changeBubbles ) {
}, },
teardown: function( namespaces ) { teardown: function( namespaces ) {
for ( var type in changeFilters ) { jQuery.event.remove( this, ".specialChange" );
jQuery.event.remove( this, type + ".specialChange", changeFilters[type] );
}
return formElems.test( this.nodeName ); return formElems.test( this.nodeName );
} }
......
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