Commit 735d44f6 authored by Ariel Flesler's avatar Ariel Flesler

jquery event: closes #3843. Some events' timeStamp are wrong on Firefox, we...

jquery event: closes #3843. Some events' timeStamp are wrong on Firefox, we don't rely on the native value anymore. timeStamp reflects object creation, not last event triggered.
parent 82e8d11c
......@@ -377,13 +377,13 @@ jQuery.Event = function( src ){
if( src && src.type ){
this.originalEvent = src;
this.type = src.type;
this.timeStamp = src.timeStamp;
// Event type
}else
this.type = src;
if( !this.timeStamp )
this.timeStamp = now();
// timeStamp is buggy for some events on Firefox(#3843)
// So we won't rely on the native value
this.timeStamp = now();
// Mark it as fixed
this[expando] = true;
......
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