aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-09-20 23:01:07 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-09-20 23:01:07 -0400
commit61511d5ab35611b50bc93b8e9ecfb35e561bee1e (patch)
treeeabef2978cb57140aec6d81fc6f39fd5053bbb9d /src/event.js
parentb85f222df55418c733c9639e88c0cdd5111c585b (diff)
downloadjquery-61511d5ab35611b50bc93b8e9ecfb35e561bee1e.tar.gz
jquery-61511d5ab35611b50bc93b8e9ecfb35e561bee1e.zip
Allow IE .trigger()ed events through on a check/radio.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 443bf862c..04589bcfc 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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;
@@ -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 );
}
},