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

1.7/enhancement_8685
Dave Methvin 2011-04-12 18:32:23 -04:00
parent 352715bd08
commit 9e71ad1b12
1 changed files with 1 additions and 0 deletions

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;