W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

Re: [promises] Difficulties with using constructors and promises together

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 20 Jun 2013 10:54:44 +0900
Message-ID: <CADnb78joXRU6wjm=YSAnMK+01pasoJo5qGFwmgtGtZT0ujR-Uw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Thu, Jun 20, 2013 at 7:32 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> Is this just what we'll have to do?  Whenever an object can only be
> created async, we have to add an "Interface.create()" function?  Or is
> there a better solution floating around somewhere that I can't see?

Yeah, that's what I suggested to Ian:

promise = ImageBitmap.create(...)

Not really sure what else you can do, but maybe public-script-coord has ideas.


--
http://annevankesteren.nl/
Received on Thursday, 20 June 2013 01:55:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:49 UTC