@missive/ndex
Version:
Ndex is an indexedDB wrapper
13 lines (9 loc) • 354 B
text/coffeescript
Adapter = require('../adapter')
class BrowserAdapter extends Adapter
# Every method is relayed to
# connection in the main thread
handleMethod: (method, args...) ->
@connection[method].apply(@connection, args)
handleLogging: (@handler) ->
@connection.logging.handleLog = => this.handleLog(arguments...)
module.exports = BrowserAdapter