aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-04-12 18:32:23 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-04-12 18:32:23 -0400
commit9e71ad1b120e2b20c7430c017629877ba277f667 (patch)
treec5261bd7729033d9f20c33f6c6e350f4447d2005 /src/event.js
parent352715bd0802e2df041f86e1a82669574183ec04 (diff)
downloadjquery-9e71ad1b120e2b20c7430c017629877ba277f667.tar.gz
jquery-9e71ad1b120e2b20c7430c017629877ba277f667.zip
Explicitly set event.type in case we chopped out a namespace or exclusive flag.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index 5e2baf0d2..f6cd97ccf 100644
--- a/src/event.js
+++ b/src/event.js
@@ -317,6 +317,7 @@ jQuery.event = {
jQuery.extend( new jQuery.Event(type), event ) :
// Just the event type (string)
new jQuery.Event(type);
+ event.type = type;
event.namespace = namespaces.join(".");
event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
event.exclusive = exclusive;