- From: Jonas Sicking <jonas@sicking.cc>
- Date: Thu, 19 Aug 2010 12:11:49 -0700
- To: bugzilla@jessica.w3.org
- Cc: public-webapps@w3.org
We also need to define behavior when any method is called outside of a
cursor callback. I.e.
db.transaction(['foo']).objectStore('foo').openCursor(...).onsuccess =
function(e) {
var cursor = e.result;
if (cursor) {
setTimeout(function() {
cursor.value;
cursor.remove();
cursor.update(...);
cursor.continue();
}, 10);
... do other stuff to keep the transaction alive ...
}
}
/ Jonas
Received on Thursday, 19 August 2010 19:12:44 UTC