Re: [IndexedDB] Behavior of IDBObjectStore.get() and IDBObjectStore.delete() when record doesn't exist

Hi,


> Indeed. But I think this is more unexpected and confusing than having
> .get() return the same thing if the entry exists as if it contains
> undefined.
>
> / Jonas
>

I don't understand that.

with the proposal, undefined clearly means the entry does not exist as there
is no way to put an undefined into the object store (as .put(undefined, key)
deletes the entry).


Cheers,
Keean.

Received on Monday, 8 November 2010 18:57:59 UTC