     @setState
       showHistory: !@state.showHistory
 
-  handleThemeChange: ->
+  handleStyleChange: ->
     setTimeout =>
       try
         alertHeight = $('poi-control').offsetHeight

      @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>

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