On Thu, Jul 9, 2015 at 11:05 AM, Boris Zbarsky <bzbar...@mit.edu> wrote: > On 7/9/15 1:32 PM, Rick Byers wrote: >> >> Done. How does example 2 look now? >> >> http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#example_2 > > Looks like it would work. Also looks kind of ugly because of the > object-truthiness bit, but I'm not sure there's any way to avoid that while > keeping the "overload a boolean and dictionary" setup.
I'm not a fan of this approach. It'll be very hard to get users to opt in consistently to the faster behavior. Especially given that it requires much more typing. / Jonas