Explicitly set event.type in case we chopped out a namespace or exclusive flag.
This commit is contained in:
parent
352715bd08
commit
9e71ad1b12
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue