     # Commenting out these lines because of
     # removal of the groups links from avatar popup. ~Umut
     # @populateGroups() if @notPopulated
-    # @populatePendingGroups() if @notPopulatedPending
 
   hide:->
     super

    @_popupListPending = new PopupList
      itemClass  : PopupGroupListItemPending

    # does not work yet
    # @_popupListPending.on 'PendingCountDecreased', @bound 'decreasePendingCount'
    # @_popupListPending.on 'UpdateGroupList',       @bound 'populateGroups'
    # whoami().on        'NewPendingInvitation',  @bound 'populatePendingGroups'

    @listControllerPending = new KDListViewController
      lazyLoaderOptions   :
        partial           : ''

        router.handleRoute '/Logout'
        @hide()


  populateGroups:->
    return  if not isLoggedIn() or @isLoading
