Re: [IndexedDB] IDBCursor.update for cursors returned from IDBIndex.openCursor

On Fri, Sep 17, 2010 at 3:14 PM, Jonas Sicking <jonas@sicking.cc> wrote:
>> Given that the key-returning versions of these functions are just
>> optimizations, at the very least, we should change the names though:
>> get->getKey (or maybe getPrimaryKey?)
>> openCursor->openKeyCursor (or maybe openPrimaryKeyCursor?)
>> getObject->get
>> openObjectCursor->openCursor
>
> I can't say that I feel strongly on the naming issue. Will ask around
> here to see how people feel.

This sounds like a workable solution. And also make IDBCursor.update
and IDBCursor.delete throw an exception if called on a key-cursor.

/ Jonas

Received on Monday, 20 September 2010 21:39:15 UTC