aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-09-11 21:18:32 -0400
committertimmywil <timmywillisn@gmail.com>2011-09-19 15:42:32 -0400
commit6ece8f138f0c89d72fd597d95aa87304cdbe4d1d (patch)
treef032c269e01ef1d04bf3537b6fd3970f08b3ea49 /src
parent6c618ddb0d1efd980316c7d268c5531419e67ae0 (diff)
downloadjquery-6ece8f138f0c89d72fd597d95aa87304cdbe4d1d.tar.gz
jquery-6ece8f138f0c89d72fd597d95aa87304cdbe4d1d.zip
Revert "Fix #6593. Don't trigger `change` event twice when simulating it on IE." Add inline handler monitor to delegatetest.html so we can see it fail.
This reverts commit e77686495b6e34938575c9c0fe978cb4a0be6f05.
Diffstat (limited to 'src')
-rw-r--r--src/event.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/event.js b/src/event.js
index 8e756097c..363448b60 100644
--- a/src/event.js
+++ b/src/event.js
@@ -853,20 +853,21 @@ if ( !jQuery.support.changeBubbles ) {
jQuery.event.special.change = {
setup: function( data, namespaces ) {
- // If this is a real input element, no need to fake change
- if ( rformElems.test( this.nodeName ) ) {
+ if ( this.type === "file" ) {
return false;
}
+
for ( var type in changeFilters ) {
jQuery.event.add( this, type + "._change", changeFilters[ type ] );
}
+
+ return rformElems.test( this.nodeName );
},
teardown: function( namespaces ) {
- if ( rformElems.test( this.nodeName ) ) {
- return false;
- }
jQuery.event.remove( this, "._change" );
+
+ return rformElems.test( this.nodeName );
}
};
}