       throw e  if document.domain == 'localhost'
       console.error(e)
       done()
-    view.resetPopovers()
     if wasAtBottom && !view.chatView.isAtBottom()
       view.chatView.scrollToBottom()
 

    queue = @updateQueue[battle.id]
    if queue.length == 0
      view.renderUserInfo()
      if wasAtBottom || view.skip? then view.chatView.scrollToBottom()
      if view.skip?
        delete view.skip

    done = () =>
      return  if done.called
      done.called = true
      if view.skip?
        @_updateBattle.call(this, battle, wasAtBottom)
      else
        # setTimeout 0 lets the browser breathe.
        setTimeout(@_updateBattle.bind(this, battle, wasAtBottom), 0)

    try
      switch type
