From: Dave Methvin Date: Tue, 12 Apr 2011 22:32:23 +0000 (-0400) Subject: Explicitly set event.type in case we chopped out a namespace or exclusive flag. X-Git-Tag: 1.6b1~8^2~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e71ad1b120e2b20c7430c017629877ba277f667;p=jquery.git Explicitly set event.type in case we chopped out a namespace or exclusive flag. --- diff --git a/src/event.js b/src/event.js index 5e2baf0d2..f6cd97ccf 100644 --- a/src/event.js +++ b/src/event.js @@ -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;