Explicitly set event.type in case we chopped out a namespace or exclusive flag.
This commit is contained in:
parent
352715bd08
commit
9e71ad1b12
|
@ -317,6 +317,7 @@ jQuery.event = {
|
||||||
jQuery.extend( new jQuery.Event(type), event ) :
|
jQuery.extend( new jQuery.Event(type), event ) :
|
||||||
// Just the event type (string)
|
// Just the event type (string)
|
||||||
new jQuery.Event(type);
|
new jQuery.Event(type);
|
||||||
|
event.type = type;
|
||||||
event.namespace = namespaces.join(".");
|
event.namespace = namespaces.join(".");
|
||||||
event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
|
event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
|
||||||
event.exclusive = exclusive;
|
event.exclusive = exclusive;
|
||||||
|
|
Loading…
Reference in a new issue