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

Re: [whatwg] Proposal: createImageBitmap should return a "Promise" instead of using a callback

From: Justin Novosad <junov@google.com>
Date: Thu, 20 Jun 2013 10:08:13 -0400
Message-ID: <CABpaAqQ7U9Gk10bHhQn3ESXp4H-WL28nXv+=Su2J__C-7Gaghw@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WHATWG <whatwg@whatwg.org>
On Wed, Jun 19, 2013 at 10:18 PM, Anne van Kesteren <annevk@annevk.nl>wrote:

>
> I think something like
>
> interface ImageBitmap {
>   static Promise create(ImageBitmapSource image, optional long sx,
> long sy, long sw, long sh);
> };
>
> would be much nicer.
>
>
I agree it would be nicer, but it seems less consistent with other existing
APIs.


>
> --
> http://annevankesteren.nl/
>
Received on Thursday, 20 June 2013 14:08:43 UTC

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