Re: Inconsistency between IDBObjectStore.openCursor, IDBIndex.openCursor, and IDBIndex.openKeyCursor

On Thursday, May 12, 2011, Israel Hilerio <israelh@microsoft.com> wrote:
> Async API:
> IDBObjectStore.openCursor stipulates that "The steps are run with this IDBObjectStore as source ..."
> IDBIndex.openCursor stipulates that "The steps are run with this IDBIndex as source ..."
> IDBIndex.openKeyCursor stipulates that "The steps are run with this IDBObjectStore as source ..."
>
> Sync API:
> IDBObjectStoreSync.openCursor stipulates that "The steps are run with this IDBObjectStoreSync as source ..."
> IDBIndexSync.openCursor stipulates that "The steps are run with this IDBIndexSync as source ..."
> IDBIndexSync.openKeyCursor stipulates that "The steps are run with this IDBIndexSync as source ..."
>
> Should the source be IDBIndex for IDBIndex.openCursor and IDBIndex.openKeyCursor (similarly for the sync APIs)?

The source for the various open cursor calls should always be te
object on which the call was made. So judging by your list above
IDBIndex.openKeyCursor needs to be fixed.

Thanks for finding this!

/ Jonas

Received on Friday, 13 May 2011 01:47:10 UTC