Explicitly set event.type in case we chopped out a namespace or exclusive flag.

This commit is contained in:
Dave Methvin 2011-04-12 18:32:23 -04:00
parent 352715bd08
commit 9e71ad1b12

View file

@ -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;