[Javascript] addEvent... conclusion?

Steve Clay sclay at ufl.edu
Sun Jan 22 16:11:06 CST 2006


Was there ever an "ideal" version of addEvent to come out of the recoding
contest?  From what I've read, the following three compete for the
latest-and-greatest:

http://therealcrisp.xs4all.nl/upload/addEvent_dean.html ?
http://p2b.jp/demos/IE-memory-leak2-en.html ?
I'm currently using http://www.dustindiaz.com/rock-solid-addevent/

And...

function myHandler(e) {

  // is this necessary with the above methods???
  e = e || window.event;

  // if I don't need the event object, do I need to include e at all?
}

Steve
-- 
http://mrclay.org/




More information about the Javascript mailing list