Making the event object cross platform
When attaching an event, e.g. keydown, to an element using bind or
keydown, the event object that gets passed in at trigger time is not
cross browser. Notably, the timeStamp object does not have a value in
IE 5/6, and is 0 in Opera 9.27.
Is there a concensus on making the event object cross platform, or
leaving it as is? The timeStamp feature is very convenient for certain
purposes, and should be reliable.
A possible fix would be to give it value
e.timeStamp = e.timeStamp || Number(new Date())
before passing it on to the event handler.