   componentWillUnmount: ->
     window.removeEventListener 'poi.alert', @handleAlert
     window.removeEventListener 'alert.change', @alertWidthChange
-    window.removeEventListener 'theme.change', @handleThemeChange
+    window.removeEventListener 'theme.change', @handleStyleChange
   render: ->
     <div id='alert-main' className='alert-main'>
       <div id='alert-history'

      @messageOld = @message
      @messageType = e.detail.type
      @updateAlert()
      @handleThemeChange()
    else if !@dontReserve
      history = @state.history
      history.push <div key={keyCount++} className='alert alert-default alert-history-contents'>{@lastMessage}</div>

    @setState
      showHistory: !@state.showHistory

  handleStyleChange: ->
    setTimeout =>
      try
        alertHeight = $('poi-control').offsetHeight
