W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: [Bug 10400] New: [IndexedDB] IDBCursor.continue should return an IDBRequest

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 19 Aug 2010 11:06:58 -0700
Message-ID: <AANLkTi=VYUv0Z0U6GcBj74YDLU8CdHYE0n3qLzJ0QRhU@mail.gmail.com>
To: public-webapps@w3.org
Hi All,

Ben Turner put some comments in the bug, but I'll add a bit here too.
The idea was that cursor.continue() should reuse the same request that
was created when .openCursor was called. That makes using cursors
significantly easier since you just have to register one 'success'
handler, instead of registering a new one for each call to
.continue().

We also remove the return value from .continue() and make it "return
void". It doesn't make sense to return a bool indicating if this was
the last entry or not since we only know that information
asynchronously.

/ Jonas
Received on Thursday, 19 August 2010 20:14:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT