 class NotificationElement
   animationDuration: 360
   visibilityDuration: 5000
+  autohideTimeout: null
 
   constructor: (@model) ->
     @fatalTemplate = TemplateHelper.create(FatalMetaNotificationTemplate)

      container.style.display = 'none'

  autohide: ->
    setTimeout =>
      @removeNotification()
    , @visibilityDuration


      @model.onDidDismiss => @removeNotification()
    else
      @autohide()
      @element.addEventListener 'click', =>
        clearTimeout(@autohideTimeout)
        @element.classList.add('has-close')

    @element.issue = @issue
    @element.getRenderPromise = @getRenderPromise.bind(this)
