Skip to content
Permalink
Browse files

jquery event: closes #3843. Some events' timeStamp are wrong on Firef…

…ox, we don't rely on the native value anymore. timeStamp reflects object creation, not last event triggered.
  • Loading branch information
flesler committed Jan 19, 2009
1 parent 82e8d11 commit 735d44f6df67767bc04a0f135ffad0369f71a26f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/event.js
@@ -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;

0 comments on commit 735d44f

Please sign in to comment.
You can’t perform that action at this time.