W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

[IndexedDB] Type of IDBRequest.readyState

From: Ms2ger <ms2ger@gmail.com>
Date: Mon, 21 Jan 2013 15:31:30 +0100
Message-ID: <50FD5142.1070607@gmail.com>
To: "public-webapps@w3.org" <public-webapps@w3.org>
Hi,

The specification has the following IDL:

interface IDBRequest : EventTarget {
     // …
     readonly attribute enum           readyState;
     // …
};

However, "enum" is not a type. The correct syntax would be something like

enum IDBReadyState { "pending", "done" };

interface IDBRequest : EventTarget {
     // …
     readonly attribute IDBReadyState  readyState;
     // …
};

HTH
Ms2ger
Received on Monday, 21 January 2013 14:31:59 GMT

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