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 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:50 UTC