From: Ariel Flesler Date: Mon, 19 Jan 2009 22:20:25 +0000 (+0000) Subject: jquery event: closes #3843. Some events' timeStamp are wrong on Firefox, we don't... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=735d44f6df67767bc04a0f135ffad0369f71a26f 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. --- diff --git a/src/event.js b/src/event.js index e46e108..5ae4bad 100644 --- a/src/event.js +++ b/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;