Skip to content
Permalink
Browse files

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

…uggestion in 5267824.
  • Loading branch information
jeresig committed Feb 10, 2010
1 parent 5267824 commit 35c379075c9feaa7cf82b4cf4c50a790e35b4d5f
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/event.js
@@ -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" );
}
};

@@ -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 );
}

0 comments on commit 35c3790

Please sign in to comment.
You can’t perform that action at this time.