mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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 ) :
|
||||
// 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 New Issue
Block a user