On Jan 15, 2006, at 12:31 PM, Beau Hartshorne wrote:

So events are driving me nuts. Normalization is difficult because some browsers get their backs up when you mess with something like event.button, or event.timeStamp. The Level 2 DOM spec is incomplete and in some cases wrong-headed (event.button, for instance). Mozilla still has some NN4 artifacts, and there are some things in IE that make sense and are useful. Anyway, all of this makes it impossible to get any UI programming done.

For MochiKit, I suggest we don't bother normalizing the original event object, but instead return a MochiKit.Event object with a consistent set of properties no matter which browser it was executed on. A key event might look like this:

It doesn't matter to me much either way, as long as there's a way to get at the original object if you actually need a reference to it.

-bob

Reply via email to