On Fri, Aug 23, 2013 at 10:22 AM, Anne van Kesteren <ann...@annevk.nl> wrote: > On Fri, Aug 23, 2013 at 6:09 PM, Boris Zbarsky <bzbar...@mit.edu> wrote: >> If we want to continue returning void when a callback is passed, we need to >> add some webidl magic for that... > > My idea was to always return a promise. And if a callback is passed > you just pass that to the promise "as listener".
Yeah, we can just auto-add the callback as a .then() argument on the returned promise. Maybe then return the promise returned by .then(), rather than the original? ~TJ