Skip to content
Permalink
Browse files

Explicitly set event.type in case we chopped out a namespace or exclu…

…sive flag.
  • Loading branch information...
dmethvin committed Apr 12, 2011
1 parent 352715b commit 9e71ad1b120e2b20c7430c017629877ba277f667
Showing with 1 addition and 0 deletions.
  1. +1 −0 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;

0 comments on commit 9e71ad1

Please sign in to comment.
You can’t perform that action at this time.