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<[email protected]> wrote:6.4.2 Usage ExampleI haven't come across the syntax: "widget.preferences[key]" before - allprevious 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
smime.p7s
Description: S/MIME cryptographic signature
