     if view_type == @state.view_type
       return
     view_time_range = @getViewTimeRange(view_type)
-    {objects} = @getAllTimelineObjects @state.events, @state.headers, view_time_range
+    objects = @getAllTimelineObjects @state.events, @state.headers, view_time_range
     @setState({view_type, objects})
 
   getViewTimeRange: (view_type) ->

    return initial

  getEventDetail: (event, show_all) ->
    if show_all or true
      return event.detail
    else
      element = $('<div>').html(event.detail)

    else if view_type == 'month'
      start = moment(moment().format("MM/1/YYYY"))
    end = moment(start).add(1, view_type)
    return {start: start.unix(), end: end.unix()}

  render: () ->
