 class ActivityListController extends KDListViewController
+
+  {dash} = Bongo
 
   constructor:(options={}, data)->
 

    @hideLazyLoader()
    return  unless activities.length > 0
    activityIds = []
    for activity in activities when activity
      @addItem activity
      activityIds.push activity._id

    @checkIfLikedBefore activityIds


    @hideLazyLoader()
    return  unless cache.overview?.length > 0
    activityIds = []
    queue = []
    cache.overview.forEach (overviewItem)=>
      if overviewItem
        queue.push =>
          if overviewItem.ids.length > 1 and overviewItem.type is "CNewMemberBucketActivity"
            group = []
            for id in overviewItem.ids
              if cache.activities[id].teaser?
                group.push cache.activities[id].teaser.anchor
              else
                KD.logToExternal msg:'no teaser for activity', activityId:id

            @addItem new NewMemberBucketData
              type                : "CNewMemberBucketActivity"
              group               : group
              count               : overviewItem.count
              createdAtTimestamps : overviewItem.createdAt
          else
            activity = cache.activities[overviewItem.ids.first]
            if activity?.teaser
              activity.teaser.createdAtTimestamps = overviewItem.createdAt
              view = @addHiddenItem activity.teaser, index, animation
              view.setClass 'no-anim'
              view.unsetClass 'hidden-item'
              KD.utils.defer -> view.unsetClass 'no-anim'
              @removeFromHiddenItems view
              activityIds.push activity.teaser._id
          queue.fin()

    dash queue, =>
      @checkIfLikedBefore activityIds
      @lastItemTimeStamp = cache.from
      @emit "teasersLoaded"

  checkIfLikedBefore:(activityIds)->
    KD.remote.api.CActivity.checkIfLikedBefore activityIds, (err, likedIds)=>
