aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-10 15:56:53 -0500
committerjeresig <jeresig@gmail.com>2010-02-10 15:56:53 -0500
commit35c379075c9feaa7cf82b4cf4c50a790e35b4d5f (patch)
treeae606141077126b7bbb746220bccbc8838c3ec04 /src/event.js
parent5267824aa36f0fcecb944a4daf0b99d6e01460fd (diff)
downloadjquery-35c379075c9feaa7cf82b4cf4c50a790e35b4d5f.tar.gz
jquery-35c379075c9feaa7cf82b4cf4c50a790e35b4d5f.zip
Simplify the special change/submit event removal logic, per Scott's suggestion in 5267824aa36f0fcecb944a4daf0b99d6e01460fd.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/event.js b/src/event.js
index 6fe8a5b15..2e510eabf 100644
--- a/src/event.js
+++ b/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 );
}