diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-04-12 18:32:23 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-04-12 18:32:23 -0400 |
commit | 9e71ad1b120e2b20c7430c017629877ba277f667 (patch) | |
tree | c5261bd7729033d9f20c33f6c6e350f4447d2005 /src/event.js | |
parent | 352715bd0802e2df041f86e1a82669574183ec04 (diff) | |
download | jquery-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.js | 1 |
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; |