dean.edwards.name/weblog/2005/09/contest/

addEvent() Recoding Contest

PPK is running a coding contest over at QuirksBlog. He is looking to improve on Scott Andrew LePera’s original addEvent() methods. I’m one of the judges (together with Scott and PPK).

Keep your methods simple and readable and you will have a chance of satisfying a code fascist like myself.;-)

Comments (3)

Leave a comment

Reposting my comment here, since I think the one on the contest page may get deleted…

I’ve used Chris Nott’s DOM2 Events module for some time…

Though I think it may have some of the same failings as AddEvent (i.e. possibly treating IE’s event model as equivilent to the DOM model), I think it works around much of that. It has at least one clear advantage over AddEvent though. It lets one use standard DOM code, so where standards are supported the script is not used, and where they aren’t it tries to fill the gap (much like Dean’s IE7 scripts).

Forcing the use of a non-standard proprietary library is one of the major failings of AddEvent, which I don’t see getting addressed given the contest guidelines.

  • Comment by: Ken Kolano
  • Posted:

Just posting my 100% agreement with Ken.

  • Comment by: Dan
  • Posted:

I think it works around much of that. It has at least one clear advantage over AddEvent though. It lets one use standard DOM code, so where standards are supported the script is not used, and where they aren’t it tries to fill the gap (much like Dean’s IE7 scripts).

  • Comment by: Saha
  • Posted:

Comments are closed.