Commit b1b2e833 authored by rwldrn's avatar rwldrn

Move this.type setting to after prop set; avoid setting twice

parent 23a411b6
......@@ -580,7 +580,6 @@ jQuery.Event = function( src ) {
// Event object
if ( src && src.type ) {
this.originalEvent = src;
this.type = src.type;
// Push explicitly provided properties onto the event object
for ( var prop in src ) {
......@@ -591,6 +590,10 @@ jQuery.Event = function( src ) {
}
}
if ( !this.type ) {
this.type = src.type;
}
// Events bubbling up the document may have been marked as prevented
// by a handler lower down the tree; reflect the correct value.
this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||
......
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