[whatwg] Web Notification: API inconsistency

Anne van Kesteren annevk at annevk.nl
Fri Aug 23 10:22:08 PDT 2013


On Fri, Aug 23, 2013 at 6:09 PM, Boris Zbarsky <bzbarsky at 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".


-- 
http://annevankesteren.nl/



More information about the whatwg mailing list