Skip to content
Permalink
Browse files

Fix #6593. Don't trigger `change` event twice when simulating it on IE.

  • Loading branch information...
dmethvin authored and timmywil committed Sep 8, 2011
1 parent 6872d31 commit 619a89d5ff6f5bcf678bdb88c3b47dea96b06ea7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/event.js
@@ -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 );
}
},

0 comments on commit 619a89d

Please sign in to comment.
You can’t perform that action at this time.