Skip to content

Commit

Permalink
Allow IE .trigger()ed events through on a check/radio.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Sep 21, 2011
1 parent b85f222 commit 61511d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event.js
Expand Up @@ -310,6 +310,7 @@ jQuery.event = {
new jQuery.Event( type );

event.type = type;
event.isTrigger = true;
event.exclusive = exclusive;
event.namespace = namespaces.join( "." );
event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
Expand Down Expand Up @@ -801,7 +802,7 @@ if ( !jQuery.support.changeBubbles ) {
var elem = event.target;

// Swallow native change events from checkbox/radio, we already triggered them above
if ( this !== elem || event.isSimulated || (elem.type !== "radio" && elem.type !== "checkbox") ) {
if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
return event.handleObj.handler.apply( this, arguments );
}
},
Expand Down

0 comments on commit 61511d5

Please sign in to comment.