aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-02-01 21:20:15 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-02-28 16:59:12 -0500
commit3f05afbd8d9bbc75d30b68e720324d1ed984a315 (patch)
tree0f08a3361dcbb0686a32e067ffa85049bc657eb7 /src
parent22a4e5bd0a7c0a92b54b9965984b582fd42099f2 (diff)
downloadjquery-3f05afbd8d9bbc75d30b68e720324d1ed984a315.tar.gz
jquery-3f05afbd8d9bbc75d30b68e720324d1ed984a315.zip
Ref #13353, gh-1183: Capture onlyHandlers in jQuery.Event.isTrigger.
Diffstat (limited to 'src')
-rw-r--r--src/event.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index e65be9a54..c9de8e617 100644
--- a/src/event.js
+++ b/src/event.js
@@ -235,7 +235,8 @@ jQuery.event = {
event :
new jQuery.Event( type, typeof event === "object" && event );
- event.isTrigger = true;
+ // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
+ event.isTrigger = onlyHandlers ? 2 : 3;
event.namespace = namespaces.join(".");
event.namespace_re = event.namespace ?
new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :