 
       docs.forEach (doc) ->
         req = store.get(doc.slug)
-        req.onsuccess = -> result[doc.slug] = req.result
-        req.onerror = -> result[doc.slug] = false
+        req.onsuccess = ->
+          result[doc.slug] = req.result
+          return
+        req.onerror = (event) ->
+          event.preventDefault()
+          result[doc.slug] = false
+          return
         return
       return
 

      store = txn.objectStore(entry.doc.slug)

      req = store.get(entry.dbPath())
      req.onsuccess = -> if req.result then onSuccess(req.result) else onError()
      req.onerror = onError
      @loadDocsCache(db) unless @cachedDocs
      return


      store = txn.objectStore('docs')

      req = store.get(doc.slug)
      req.onsuccess = ->
        fn(req.result)
        return
      req.onerror = (event) ->
        event.preventDefault()
        fn(false)
        return
      return
    return

