Thursday, September 08, 2005

addEvent() recoding contest

Peter-Paul Koch has put together a contest to recreate my addEvent() and removeEvent() utilities in a way that compensates for its inherent shortcomings:

Write your own version of addEvent() and removeEvent(), submit it by adding a comment to this page, and win JavaScript fame.

Entries will be judged by a panel consisting of Scott Andrew LePera, Dean Edwards and myself on script quality, simplicity and portability, and the clarity of your explanation.

I'll also update the original tutorial that introduced addEvent() with a link to the winning entry.

Previously: Know your (event) sources.

2 Comments:

At 9:10 AM, Blogger David said...

Some seriously crazy events.

Though, for a new add/removeEvent, a simple wrapper function that builds upon DOM0 events and stears clear of attachEvent should be an easy "winner". Not sure why you'd ask people to build that again when some smart folks did it years ago (Aaron's listener and The 13th Parallel's).

 
At 6:13 PM, Blogger Unknown said...

This comment has been removed by the author.

 

Post a Comment

<< Home