 
       @emit "LoginViewHidden"
       @hidden = yes
+      @hideTimer = @utils.wait 2000, => @setClass 'hidden'
       callback?()
 
     unless @hidden then do cb

  constructor:(options = {}, data)->

    {entryPoint} = KD.config

    super options, data



  show:(callback)->

    @utils.killWait @hideTimer
    cb = =>
      @emit "LoginViewShown"
      @hidden = no
      callback?()

    @unsetClass 'hidden'
    @utils.defer =>
      @setY 0
      unless @hidden then do cb
      else @once "transitionend", cb

  click:(event)->
    if $(event.target).is('.login-screen')
