Commit 9e71ad1b authored by Dave Methvin's avatar Dave Methvin

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

parent 352715bd
...@@ -317,6 +317,7 @@ jQuery.event = { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment