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

Re: [whatwg] Adding features needed for WebGL to ImageBitmap

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 19 Jun 2013 15:01:42 -0700
Message-ID: <CAAWBYDC+H0H7HBpqcz-v8t7xkJx9rfd-n09kB86TBpJViaKAJg@mail.gmail.com>
To: Gregg Tavares <gman@google.com>
Cc: WHATWG <whatwg@whatwg.org>
On Wed, Jun 19, 2013 at 2:47 PM, Gregg Tavares <gman@google.com> wrote:
> If it was up to me I'd make createImageBitmap take on object with
> properties so that new options can be added later as in
>     createImageBitmap(src, callback, {
>        premultipliedAlpha: false,
>        colorspaceConversion: false,
>        x: 123,
>     });
> But I'm not familiar if there is a common way to make APIs take a options
> like this except for the XHR way which is to create a request, set
> properties on the request, and finally execute the request.

Passing an options object is the standard way.  Don't look to XHR for
*anything* about precedents.

Received on Wednesday, 19 June 2013 22:02:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:00 UTC