from https://developer.mozilla.org/en-US/docs/IndexedDB/Using_IndexedDB

// Make sure to add a handler to be notified if another page requests a
version
  // change. We must close the database. This allows the other page to
upgrade the database.
  // If you don't do this then the upgrade won't happen until the user
close the tab.
  db.onversionchange = function(event) {
    db.close();
    alert("A new version of this page is ready. Please reload!");
  };

I experiment lock (freeze on test) without it.



On Tue, Jun 4, 2013 at 6:51 AM, Seth Ladd <notifications@github.com> wrote:

> In lib/src/indexeddb_store.dart:
>
> >            }
> > -        })
> > -        .then((db) {
> > +          return db;
> > +        }).then((db){
> > +          db.onVersionChange.listen((event) {
> > +            db.close();
>
> Can you explain this bit? Closing the DB if it needs a version change?
> What happens then?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sethladd/lawndart/pull/16/files#r4515720>
> .
>