 
     super options, data
 
-    @resetList()
     @hiddenItems = []
-    @_state      = 'public'
 
-    groupController = KD.getSingleton("groupsController")
-    groupController.on "PostIsCreated", @bound "postIsCreated"
+
+  listActivities: (activities) ->
+
+    @hideLazyLoader()
+
+    return  unless activities.length > 0
+
+    @addItem activity for activity in activities
+
+
+
+
+
+
+
+
+
+
+
+
+  # LEGACY
 
   postIsCreated: (post) =>
     bugTag   = tag for tag in post.subject.tags when tag.slug is "bug"


  constructor:(options={}, data)->

    viewOptions = options.viewOptions or {}
    viewOptions.cssClass          = KD.utils.curry 'activity-related', viewOptions.cssClass
    viewOptions.comments         ?= yes
    viewOptions.itemClass       or= options.itemClass
    options.view                or= new KDListView viewOptions, data
    options.startWithLazyLoader  ?= yes
    options.lazyLoaderOptions     = partial : ''
    options.showHeader           ?= yes
    options.noItemFoundWidget    ?= new KDCustomHTMLView
      cssClass : "lazy-loader hidden"
      partial  : "There is no activity."

    @bindItemEvents subject
    return subject



  isMine:(activity)->
    id = KD.whoami().getId()
    id? and id in [activity.originId, activity.anchor?.id]


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