Ian Hickson wrote:
And then afterwards the |length| is ? one? three?On Tue, 28 Apr 2009, John J. Barton wrote:I could not figure out from the WebIDL what happens in this case: sessionStore[2] = "howdy"; // no other keys in sessionStoreI guess this does not work like _javascript_ arrays or objects, rather I expect it fails?It works, it just sets the key "2" to the value "howdy". If I iterate for(var i = 0; i < sesssionStore.length; i++) foo(i, sessionStore[i]); what can I expect in foo()? (0, null), (1, null), (2, "2") or (0, "2")? or ? Thanks, jjb |
- Storage 'length' and enumeration John J. Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J Barton
- Re: Storage 'length' and enumeration Ian Hickson
- Re: Storage 'length' and enumeration John J. Barton
- Re: Storage 'length' and enumerati... Ian Hickson
- Re: Storage 'length' and enume... John J. Barton
- Re: Storage 'length' and e... Ian Hickson
- Re: Storage 'length' and e... John J. Barton
- Re: Storage 'length' and e... Ian Hickson
- Re: Storage 'length' and e... John J Barton
- Re: Storage 'length' and e... Anne van Kesteren
- Re: Storage 'length' and e... John J Barton
- Re: Storage 'length' and e... Ian Hickson
- Re: Storage 'length' and e... John J Barton
- Re: Storage 'length' and e... Ian Hickson
- Re: Storage 'length' and e... John J. Barton