           .attr('fill', '#efefef')
 
       positionCrosshair = (x, time) ->
+        currentCrosshairTime = time
         vertical_crosshair
           .attr('x1', x)
           .attr('x2', x)

        positionCrosshair p.x, p.time
        cursorBus.push p.time

      destroyFunctions.push externalCursorChanges.onValue (time) ->
        domain = x.domain()
        if time < domain[0]
          time = domain[0]
        else if time > domain[1]
          time = domain[1]
        positionCrosshair x(time), time

      target = g.selectAll('.target')
          .data(targets)

    legend = d3.select(container).append('ul')
      .attr('class', 'legend')

    currentCrosshairTime = null

    destroyFunctions = []
    destroy = ->
