- From: Scott Wilson <scott.bradley.wilson@gmail.com>
- Date: Thu, 20 Aug 2009 10:46:50 +0100
- To: marcosc@opera.com
- Cc: public-webapps WG <public-webapps@w3.org>
Received on Thursday, 20 August 2009 09:47:41 UTC
The Storage [1 interface ] is defined as:
interface Storage {
readonly attribute unsigned long length;
getter any key(in unsigned long index);
getter any getItem(in DOMString key);
setter creator void setItem(in DOMString key, in any data);
deleter void removeItem(in DOMString key);
void clear();
};
I don't see any mention of accessing Storage as an array in either
WebStorage or Widgets A&E.
S
[1] http://dev.w3.org/html5/webstorage/#the-storage-interface
On 20 Aug 2009, at 10:13, Marcos Caceres wrote:
> On Wed, Aug 19, 2009 at 2:02 PM, Scott
> Wilson<scott.bradley.wilson@gmail.com> wrote:
>> 6.4.2 Usage Example
>>
>> I haven't come across the syntax: "widget.preferences[key]" before
>> - all
>> previous discussions have used the syntax:
>> "widget.preferences.getItem(key)", which is the syntax used in
>> WebStorage
>> [1]
>>
>> I presume the example is in error.
>
> The use of widget.preferences[key] is correct.
>
>
> --
> Marcos Caceres
> http://datadriven.com.au
Received on Thursday, 20 August 2009 09:47:41 UTC