   getAllTimelineObjects: (events, headers, view_time_range) ->
     if not view_time_range?
       view_time_range = @getViewTimeRange @state.view_type
-
+    debugger
     # Reads the events and headers off of state, orders them, and returns them
     objects = []
     i = 0
     for header, j in headers
       if header.moment.unix() < view_time_range.start
+        # Skip over all the events for this header that are out of the window
+        while i < events.length and events[i].rendered_date == header.date
+          i++
         continue
       if header.moment.unix() >= view_time_range.end
         break

    @initializeEvents(props.events)
    {events, headers} = @processEvents(props.events)
    view_type = "day"
    objects = @getAllTimelineObjects(events, headers, view_type)

    return {
      events

    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: () ->
