- From: Jonas Sicking <jonas@sicking.cc>
- Date: Fri, 6 Jul 2012 16:47:52 -0700
- To: Ryosuke Niwa <rniwa@webkit.org>
- Cc: Boris Zbarsky <bzbarsky@mit.edu>, public-webapps@w3.org
On Fri, Jul 6, 2012 at 3:18 PM, Ryosuke Niwa <rniwa@webkit.org> wrote: > > On Jul 6, 2012 3:06 PM, "Boris Zbarsky" <bzbarsky@mit.edu> wrote: >> >> On 7/5/12 3:05 PM, Ryosuke Niwa wrote: >>> >>> Also, I think consistency matters a lot here. I'm not aware of any other >>> Web-facing API that takes a pure object with callback functions. >> >> >> >> http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-NodeFilter >> (the acceptNode function). >> >> Or was the point about having multiple callback functions? > > Precisely about having multiple callback functions. > > Also to respond to some of earlier comments, I don't think most web > developers think of passing objects when adding event listeners. Why does having one callback function rather than two make implementation harder? / Jonas
Received on Friday, 6 July 2012 23:48:50 UTC