 
   # Store first & last activity timestamp.
   extractTeasersTimeStamps:(teasers)->
-
     @lastTo   = teasers.first.meta.createdAt
     @lastFrom = teasers.last.meta.createdAt
     # debugger

    activityController.once "ActivityListControllerReady", (controller)=>
      @attachEvents controller
      frontApp = @getSingleton('appManager').getFrontApp()
      @populateActivity() if frontApp?.name is "Activity"

  loadView:->
    @populateActivity() if @listController

  resetAll:->

    delete @lastTo
    delete @lastFrom

    @listController.resetList()
    @listController.removeAllItems()


  # Refreshes activity feed, used when user has been disconnected
  # for so long, backend connection is long gone.
  refresh:->
    # prevents multiple clicks to refresh from interfering
    return  if @isLoading

