Skip to content

Commit

Permalink
Fix #6593. Don't trigger change event twice when simulating it on IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Sep 8, 2011
1 parent 2aaac9f commit 3d0de29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event.js
Expand Up @@ -799,8 +799,8 @@ if ( !jQuery.support.changeBubbles ) {
jQuery._data( elem, "_change_data", val );
}

if ( val !== old && old != null ) {
simulate( "change", elem, e, true );
if ( val !== old && old != null && elem.parentNode ) {
simulate( "change", elem.parentNode, e, true );
}
},

Expand Down

0 comments on commit 3d0de29

Please sign in to comment.