Re: [IndexedDB] Let's remove IDBDatabase.objectStore()

2010-08-24 Thread Andrei Popescu
On Tue, Aug 24, 2010 at 12:43 AM, ben turner bent.mozi...@gmail.com wrote:
 Hi folks,

 We originally included IDBDatabase.objectStore() as a convenience
 function because we figured that everyone would hate typing
 |myDatabase.transaction('myObjectStore').objectStore('myObjectStore')|.
 Unfortunately I think we should remove it - too many developers have
 used the function without realizing that the returned object was tied
 to a particular transaction. Any objections?


Removing it sounds like a good idea.

Andrei



[IndexedDB] Let's remove IDBDatabase.objectStore()

2010-08-23 Thread ben turner
Hi folks,

We originally included IDBDatabase.objectStore() as a convenience
function because we figured that everyone would hate typing
|myDatabase.transaction('myObjectStore').objectStore('myObjectStore')|.
Unfortunately I think we should remove it - too many developers have
used the function without realizing that the returned object was tied
to a particular transaction. Any objections?

-Ben