 kd                          = require 'kd'
 isLoggedIn                  = require '../util/isLoggedIn'
 AvatarPopup                 = require '../avatararea/avatarpopup'
-NotificationListController  = require './notificationlistcontroller'
-NotificationListItemView    = require './notificationlistitemview'
-PopupList                   = require '../avatararea/popuplist'
 isKoding                    = require 'app/util/isKoding'
 Tracker                     = require '../util/tracker'
 


    super

    @_popupList = new PopupList
      itemClass : NotificationListItemView
      delegate  : this

    @listController = new NotificationListController
      view         : @_popupList
      maxItems     : 5

    @listController.on 'AvatarPopupShouldBeHidden', @bound 'hide'

    @forwardEvent @listController, 'NotificationCountDidChange'
    @forwardEvent @listController, 'AvatarPopupShouldBeHidden'

    @avatarPopupContent.addSubView @listController.getView()
    @addAccountMenu()  unless isKoding()

    @updateItems()

    @attachListeners()

    { mainController } = kd.singletons
    mainController.on 'AccountChanged', @bound 'attachListeners'


  addAccountMenu: ->



  hide: ->
    super


  accountChanged: (account) ->
    super
