       request = @client.createReadingForBook @book.id, data
       request.then(@_onCreateReadingSuccess, @_onCreateReadingError)
 
-  connect: ->
+  connect: =>
     @auth.connect().then @_onConnectSuccess, @_onConnectError
 
   connected: (accessToken, options) ->

    obj

class View extends Annotator.Plugin
  classes:
    loggedIn: "annotator-readmill-logged-in"


    @store  = new Readmill.Store
    @client = new Readmill.Client @options

    @view.subscribe "connect", @connect

    token = options.accessToken || @store.get "access-token"
    @connected(token, silent: true) if token
    @unsaved = []
