RE: [IndexedDB] deleteObjectStore method and updates to IDBDatabase.objectStoreNames on the client

2011-06-10 Thread Eliot Graff
> requ...@w3.org] On Behalf Of Jonas Sicking > Sent: Wednesday, May 04, 2011 1:21 PM > To: Jeremy Orlow > Cc: Israel Hilerio; public-webapps@w3.org > Subject: Re: [IndexedDB] deleteObjectStore method and updates to > IDBDatabase.objectStoreNames on the client > > On Wed, May 4,

Re: [IndexedDB] deleteObjectStore method and updates to IDBDatabase.objectStoreNames on the client

2011-05-04 Thread Jonas Sicking
On Wed, May 4, 2011 at 9:49 AM, Jeremy Orlow wrote: > On Wed, May 4, 2011 at 9:40 PM, Israel Hilerio > wrote: >> >> The reason I was thinking that deleteObjectStore was async was because it >> returns an IDBRequest interface and the pattern implies that the onsuccess >> handler needs to be called

Re: [IndexedDB] deleteObjectStore method and updates to IDBDatabase.objectStoreNames on the client

2011-05-04 Thread Jeremy Orlow
On Wed, May 4, 2011 at 9:40 PM, Israel Hilerio wrote: > The reason I was thinking that deleteObjectStore was async was because it > returns an IDBRequest interface and the pattern implies that the onsuccess > handler needs to be called for me to be sure that the operation happened > successfully.

RE: [IndexedDB] deleteObjectStore method and updates to IDBDatabase.objectStoreNames on the client

2011-05-04 Thread Israel Hilerio
The reason I was thinking that deleteObjectStore was async was because it returns an IDBRequest interface and the pattern implies that the onsuccess handler needs to be called for me to be sure that the operation happened successfully. Regarding the createObjectStore, it returns immediately but

Re: [IndexedDB] deleteObjectStore method and updates to IDBDatabase.objectStoreNames on the client

2011-05-03 Thread Jeremy Orlow
Well, createObjectStore is synchronous, so that one's easy. Everything happens at once in terms of side effects. As for delete: why is this asynchronous again? It seems easiest just to make it sync unless there's some major problem with doing so. Either way, it seems that the change to objectSt