     @type {Firebase}
   ###
   userRef: null
+
+  ###*
+    @type {boolean}
+    @private
+  ###
+  isLocalChange_: false
 
   ###*
     @protected


  logout: ->
    @authClient.logout()

      .child user.uid

  onUserLogout: ->
    userWasLogged = !!@userRef
    @userRef.off 'value' if userWasLogged
    @userRef = null
    ###*
      PATTERN: Logout has to delete all data in memory and in localStorage, but
      only if user was logged before. We don't want to delete data for not yet
      registered/logged user.
    ###
    @userStore.clearOnLogout userWasLogged
    @userStore.serverNotify()

  loginViaFacebook: ->
    @authClient.login 'facebook',
