Skip to content

Commit

Permalink
Simplify the special change/submit event removal logic, per Scott's s…
Browse files Browse the repository at this point in the history
…uggestion in 5267824.
  • Loading branch information
jeresig committed Feb 10, 2010
1 parent 5267824 commit 35c3790
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/event.js
Expand Up @@ -677,8 +677,7 @@ if ( !jQuery.support.submitBubbles ) {
},

teardown: function( namespaces ) {
jQuery.event.remove( this, "click.specialSubmit" );
jQuery.event.remove( this, "keypress.specialSubmit" );
jQuery.event.remove( this, ".specialSubmit" );
}
};

Expand Down Expand Up @@ -778,9 +777,7 @@ if ( !jQuery.support.changeBubbles ) {
},

teardown: function( namespaces ) {
for ( var type in changeFilters ) {
jQuery.event.remove( this, type + ".specialChange", changeFilters[type] );
}
jQuery.event.remove( this, ".specialChange" );

return formElems.test( this.nodeName );
}
Expand Down

0 comments on commit 35c3790

Please sign in to comment.