W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [IndexedDB] onsuccess isn’t the best for writes

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 19 Mar 2012 18:59:29 -0500
Message-ID: <CABirCh9ek2Tt3QQ6=wbyb3wmOkJFgmW5-9uELgyaeQoJRFfz9Q@mail.gmail.com>
To: Yonathan <yonathan@gmail.com>
Cc: public-webapps@w3.org
On Fri, Mar 16, 2012 at 6:24 AM, Yonathan <yonathan@gmail.com> wrote:

> Should the specification encourage onsuccess

for reads and oncomplete for writes?
>

I don't think any amount of documentation is going to stop this from being
confusing.  Committing transactions should really have been an explicit
request with its own result, and returning to the event loop without
committing should have rolled back the transaction.

(What does "when a transaction can no longer become active" mean?  It
doesn't seem to be defined.)

-- 
Glenn Maynard
Received on Monday, 19 March 2012 23:59:57 GMT

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