Fix app.DB#version returning boolean instead version

This commit is contained in:
Thibaut 2015-01-01 15:39:17 -05:00
parent ccf9171ccc
commit 4f781d7e82

View file

@ -98,7 +98,7 @@ class app.DB
store = txn.objectStore('docs')
req = store.get(doc.slug)
req.onsuccess = -> fn(!!req.result)
req.onsuccess = -> fn(req.result)
req.onerror = -> fn(false)
return
return