W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] Web Notification: API inconsistency

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 23 Aug 2013 18:22:08 +0100
Message-ID: <CADnb78gJ28tNEKFv6QYZ8GT_44WiD7ATqHtuvzdzu6ehJ969-A@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: WHATWG <whatwg@lists.whatwg.org>
On Fri, Aug 23, 2013 at 6:09 PM, Boris Zbarsky <bzbarsky@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".

Received on Friday, 23 August 2013 17:22:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC