       container.style.display = 'none'
 
   autohide: ->
-    setTimeout =>
+    @autohideTimeout = setTimeout =>
       @removeNotification()
     , @visibilityDuration
 

class NotificationElement
  animationDuration: 360
  visibilityDuration: 5000

  constructor: (@model) ->
    @fatalTemplate = TemplateHelper.create(FatalMetaNotificationTemplate)

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

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