]> source.dussan.org Git - jquery.git/commitdiff
Explicitly set event.type in case we chopped out a namespace or exclusive flag.
authorDave Methvin <dave.methvin@gmail.com>
Tue, 12 Apr 2011 22:32:23 +0000 (18:32 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 12 Apr 2011 22:32:23 +0000 (18:32 -0400)
src/event.js

index 5e2baf0d258cce88eef5700c494449bafe1d12d2..f6cd97ccfa590b4f9818aadae6bf03f3a8910eac 100644 (file)
@@ -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;