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

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 21 Jun 2013 10:44:21 +0900
Message-ID: <CADnb78iqwzjbk9vjZF446yKJ-Rh7cfiCuCQ1x5s6FdZ-_25GmQ@mail.gmail.com>
To: Justin Novosad <junov@google.com>
Cc: WHATWG <whatwg@whatwg.org>
On Thu, Jun 20, 2013 at 11:08 PM, Justin Novosad <junov@google.com> wrote:
> I agree it would be nicer, but it seems less consistent with other existing
> APIs.

The factory methods we have thus far should probably not be taken as
precedent. Almost nobody likes them. URL.createObjectURL() is somewhat
like this, although it returns a string and not a URL object.


--
http://annevankesteren.nl/
Received on Friday, 21 June 2013 01:44:47 UTC

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