Re: [whatwg] Web Notification: API inconsistency

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...

-Boris

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