Newsgroups: comp.lang.javascript
From: "David Golightly" <davig...@gmail.com>
Date: 23 Nov 2006 23:30:59 -0800
Local: Fri, Nov 24 2006 2:30 am
Subject: Re: Any need for addEventListener() and attachEvent() at all?
Peter Michaux wrote: Hey Peter, > David Golightly wrote: > > Peter Michaux wrote: > > > I would really like to write a robust event library that > > > just works and doesn't suprise me some day down the road. > > Yeah, I guess that's why I included the DOM 0 fallback. (Which could > Here is my rough draft of the library. If anyone is interested please > http://peter.michaux.ca/temp/event.html > I need to add many more unit tests and docs but I think that's enough > > > What I'm wondering is if the DOM0 implementations in the browsers have > > I wonder if you couldn't just implement the functionality of the DOM > I don't know if the performance would be noticably different even in a > Peter Your code looks good and runs well, but I'm still a bit concerned about el['on' + type] = function(e) { Here is the relevant W3C recommendation quote I was concerned about your implementation's synchronous implementation; However, what your implementation is missing is fallback error That's all. Good work otherwise. -David You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||