W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2010

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

From: Keean Schupke <keean@fry-it.com>
Date: Mon, 8 Nov 2010 18:57:26 +0000
Message-ID: <AANLkTimBLiu6Zjhu0VvTawkHc8eP6Fmn2okYQfB30LNW@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Webapps WG <public-webapps@w3.org>

> 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).

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:13 UTC