 
     # TODO(steida): Refactor it.
     if !user
+      # debugger
       # NOTE(steida): Stop listening changes after logout.
       # @stopListeningUserValue()
       @userRef?.off 'value'
       # PATTERN(steida): Logout deletes all user data in local storage.
-      # TODO(steida): This should belong into userStore.
+      # TODO(steida): This should belong into @userStore.
       if @userRef
-        userStore.setEmpty()
+        @userStore.setEmpty()
       else
-        userStore.user = null
-      userStore.notify()
+        @userStore.user = null
+      @userStore.notify()
       # TODO(steida): Redirect to home.
       return
 

    @userRef.on 'value',
      (snap) =>
        # NOTE(steida): For not yet persisted user, snap.val() is null.
        storeJson = snap.val() ? userStore.toJson()
        storeJson.user = user
        userStore.fromJson storeJson
        userStore.notify()
    , (error) ->
      # TODO(steida): Report to server.
      console.log 'The read failed: ' + error.code

    @root = new window.Firebase 'https://shining-fire-6810.firebaseio.com/'

  ###*
    NOTE(steida): This method is called whenever user login status has changed.
    TODO(steida): Refactor.
    @param {Object} error
    @param {Object} user
  ###
  onSimpleLogin: (error, user) ->
    if error
      # TODO(steida): Report to server.
      console.log error
