We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c5defd commit b37bb71Copy full SHA for b37bb71
index.js
@@ -146,6 +146,18 @@ Store.prototype._store = function (mode, cb) {
146
})
147
}
148
149
+Store.prototype._open = function(cb) {
150
+ var self = this
151
+ this._getdb(function(db) {
152
+ self._store('readonly', function (err, store) {
153
+ backify(store.get(self.name + DELIM + "length"), function(err, ev) {
154
+ self.length = ev.target.result || 0
155
+ cb(null)
156
+ })
157
158
159
+}
160
+
161
function backify (r, cb) {
162
r.addEventListener('success', function (ev) { cb(null, ev) })
163
r.addEventListener('error', cb)
0 commit comments