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

Re: [whatwg] Web Notification: API inconsistency

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 23 Aug 2013 13:09:30 -0400
Message-ID: <5217974A.7030901@mit.edu>
To: whatwg@lists.whatwg.org
On 8/23/13 12:33 PM, Tab Atkins Jr. wrote:
> If a function currently takes a callback argument and returns void,
> it's trivial to upgrade it to instead make the callback optional and
> return a promise when it's not passed.

And null if a callback is passed?

If we want to continue returning void when a callback is passed, we need 
to add some webidl magic for that...

Received on Friday, 23 August 2013 17:10:03 UTC

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