From ff055d78c30b7ea71ae51a5b09be4c5a2b0f264e Mon Sep 17 00:00:00 2001 From: Jakub Liska Date: Tue, 16 Dec 2014 22:06:48 +0100 Subject: [PATCH] Missing IDBCursor#continue method binding --- src/main/scala/org/scalajs/dom/Idb.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/scala/org/scalajs/dom/Idb.scala b/src/main/scala/org/scalajs/dom/Idb.scala index 32512ff66..950fe759d 100644 --- a/src/main/scala/org/scalajs/dom/Idb.scala +++ b/src/main/scala/org/scalajs/dom/Idb.scala @@ -283,6 +283,16 @@ class IDBCursor extends js.Object { */ def advance(count: Int): Unit = js.native + /** + * Sets cursor to key if specified, otherwise advances cursor by one. + * + * @note calling this method twice from the same onsuccess handler results + * in a InvalidStateError DOMException being thrown on the second call + * + * W3C + */ + def continue(key: js.Any = ???): Unit = js.native + /** * Returns an IDBRequest object, and, in a separate thread, deletes the record at the * cursor's position, without changing the cursor's position.