src/adapters/indexed-db.js
function onsuccess(event) {
            // remember the db instance
            self.db = event.target.result;

            // storage is now possible
            self.store = true;

            // execute all pending operations
            while (self.waiting.length) {
                self.waiting.shift().call(self);
            }

            // we're done, fire the callback
            if (cb) {
                cb.call(self, self);
            }
        }
function onsuccess(event) {
            // remember the db instance
            self.db = event.target.result;

            // storage is now possible
            self.store = true;

            // execute all pending operations
            while (self.waiting.length) {
                self.waiting.shift().call(self);
            }

            // we're done, fire the callback
            if (cb) {
                cb.call(self, self);
            }
        }
function onsuccess ( event ) { // remember the db instance self . db = event . target . result ; // storage is now possible self . store = true ; // execute all pending operations while ( self . waiting . length ) { self . waiting . shift ( ) . call ( self ) ; } // we're done, fire the callback if ( cb ) { cb . call ( self , self ) ; } }
database is ready for use
database is ready for use