     "focus .popup" : "focusPopupEvent"
 
   initialize: =>
-    @numPopups = 0
     @listenTo(@collection, 'open', @createPopup)
     @listenTo(@collection, 'focus', @focusPopup)
     @listenTo(@collection, 'receive', @receiveMessage)

      $html = $(@messageTemplate({window, id, title}))

      @$el.append($html)
      @positionPopup($html, @numPopups)
      @addLogMessages($html, message.getLog())
      @numPopups += 1
    $html

  focusPopup: (message) =>

    username = message.id
    @$findPopup(username).remove()
    @repositionPopups()

  minimizePopup: (message) =>
    username = message.id
