- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 20 Jun 2013 10:23:24 -0700
- To: Justin Novosad <junov@google.com>
- Cc: WHATWG <whatwg@whatwg.org>
On Thu, Jun 20, 2013 at 7:08 AM, Justin Novosad <junov@google.com> wrote:
> 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.
There's really no consistency here anyway, and the
"Interface.create()" idiom is pretty easy and nice.
I wonder - perhaps we can call the function "new"? Dunno which name is better.
~TJ
Received on Thursday, 20 June 2013 17:24:09 UTC