Closed
Bug 1358707
Opened 8 years ago
Closed 6 years ago
IDBCursor.update and IDBCursor.delete documentation should mention that it cannot be used on cursors obtained through index.openKeyCursor
Categories
(Developer Documentation Graveyard :: API: IndexedDB, enhancement, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mstange, Assigned: cmills)
References
()
Details
:: Developer Documentation Request
Request Type: Correction
Gecko Version: unspecified
Technical Contact:
:: Details
You can't call cursor.update() (or cursor.delete(), for that matter) on cursors that you obtained from index.openKeyCursor(). You have to use index.openCursor() instead. It would be nice to mention this.
It's kind of mentioned in the table of potential errors (for InvalidStateError), but that's a bit ambiguous and could be spelled out more explicitly.
Reporter | ||
Updated•8 years ago
|
Component: General → API: IndexedDB
Assignee | ||
Comment 1•8 years ago
|
||
Notes added to
https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/update
https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/delete
Assignee: nobody → cmills
Assignee | ||
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•