 
   constructor:(options={}, data)->
 
-    viewOptions = options.viewOptions or {}
+    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."


    super options, data

    @resetList()
    @hiddenItems = []
    @_state      = 'public'

    groupController = KD.getSingleton("groupsController")
    groupController.on "PostIsCreated", @bound "postIsCreated"

  postIsCreated: (post) =>
    bugTag   = tag for tag in post.subject.tags when tag.slug is "bug"

    @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)=>
