W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: [IndexedDB] Accept simple strings in IDBDatabase.transaction()

From: Jeremy Orlow <jorlow@chromium.org>
Date: Thu, 23 Sep 2010 10:40:11 +0100
Message-ID: <AANLkTim+bUKiiUF0=AgsEbBNbc4RUYv-umqWFVro0s1T@mail.gmail.com>
To: ben turner <bent.mozilla@gmail.com>
Cc: public-webapps WG <public-webapps@w3.org>
Seems reasonable to me.  Is there any better way to spec it other than
having the parameter be an "any" and having normative text describing how it
works?

J

On Wed, Sep 22, 2010 at 9:11 PM, ben turner <bent.mozilla@gmail.com> wrote:

> Hi folks,
>
> The spec currently says that IDBDatabase.transaction() takes an array
> of object store names as its first parameter. While I think this is
> fine I'd like to propose that we loosen that restriction and allow a
> simple string to name one object store as well. Thus this code:
>
>  var transaction = database.transaction(["foo"]);
>
> could, additionally, be written as:
>
>  var transaction = database.transaction("foo");
>
> I of course would like the array syntax to continue to be valid for
> one or more object store names.
>
> What do you guys think?
>
> -Ben
>
>
Received on Thursday, 23 September 2010 09:41:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT