aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllen J Schmidt Jr <cobrasoft@gmail.com>2012-10-15 20:22:19 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-10-19 16:42:13 -0400
commitc6cf30a56e29c7f8e009443611f86a4c0839b689 (patch)
tree8a2783e183c29f0d6d210c2097a88d7f1ac0fe4c /src
parentb386080798a34d974f8da195bfa8a1c581798507 (diff)
downloadjquery-c6cf30a56e29c7f8e009443611f86a4c0839b689.tar.gz
jquery-c6cf30a56e29c7f8e009443611f86a4c0839b689.zip
Fix #12739. Keep namespace when triggering with an Event. Close gh-972.
Diffstat (limited to 'src')
-rw-r--r--src/event.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 8e0f59afc..299f71615 100644
--- a/src/event.js
+++ b/src/event.js
@@ -212,7 +212,7 @@ jQuery.event = {
// Event object or event type
var cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType,
type = event.type || event,
- namespaces = [];
+ namespaces = event.namespace ? event.namespace.split(".") : [];
// focus/blur morphs to focusin/out; ensure we're not firing them right now
if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {