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.
This commit is contained in:
Dave Methvin
2011-09-11 21:18:32 -04:00
committed by timmywil
parent 6c618ddb0d
commit 6ece8f138f
2 changed files with 18 additions and 15 deletions

View File

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