git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5267824
)
Simplify the special change/submit event removal logic, per Scott's suggestion in...
author
jeresig
<jeresig@gmail.com>
Wed, 10 Feb 2010 20:56:53 +0000
(15:56 -0500)
committer
jeresig
<jeresig@gmail.com>
Wed, 10 Feb 2010 20:56:53 +0000
(15:56 -0500)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
6fe8a5b
..
2e510ea
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-677,8
+677,7
@@
if ( !jQuery.support.submitBubbles ) {
},
teardown: function( namespaces ) {
},
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 ) {
},
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 );
}
return formElems.test( this.nodeName );
}