[whatwg] Exposing EventTarget to JavaScript

On Fri, Apr 24, 2009 at 2:43 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> Erik Arvidsson wrote:
>
>> I do agree that the EventTarget API is suboptimal and so are most of
>
> the DOM APIs but it is what we got and we need tie the lose ends and
>> make ends meet.
>>
>
> Why is the right approach to this to add addEventListener and its baggage
> to everything instead of adding a sane API to everything?
>

What would be a better approach? You gain a lot from consistency and doing
something that developers are already intimately familiar with. Personally,
addEventListener seems good enough to me and it's already there. I'm not
totally opposed to coming up with something better than addEventListener,
but it's hard to argue one way or another without a counter-proposal.

Ojan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090424/8d0c9bd5/attachment.htm>

Received on Friday, 24 April 2009 14:59:01 UTC