W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

[IndexedDB] Can IDBTransaction.oncomplete callback be used as active state?

From: Kyaw Tun <kyawtun@yathit.com>
Date: Sun, 18 Nov 2012 23:29:40 +0800
Message-ID: <CAFPCW94Ksj9ye_FjAaFcGtpG-P+oz4o1hZjetU9mCoC0iXZykw@mail.gmail.com>
To: public-webapps@w3.org
Transaction is active as long as I send request from the IDBRequest
callback. Is there any other way to prevent committing?

If there any way to detect transaction active flag?

I expect IDBTransaction.oncomplete callback can be used to flag inactive
state, but it is not according to my few test. Transaction is already
inactive and cannot be use even before receiving oncomplete callback.
Received on Sunday, 18 November 2012 15:30:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:56 GMT