- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Fri, 24 Apr 2009 17:43:32 -0400
Erik Arvidsson wrote: > On Fri, Apr 24, 2009 at 11:46, Boris Zbarsky <bzbarsky at mit.edu> wrote: >> It's not really clear to me what the benefits of using the (rather >> suboptimal, from the JS point of view) DOM EventTarget API for generic JS >> callback dispatch are. > > One of the benefits is a consistent API. OK, true. But if the API is a bad fit, this might not be enough to want to use it. > 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? -Boris
Received on Friday, 24 April 2009 14:43:32 UTC