Fixes copy&paste error in event

This was referenced in 715771431c
This commit is contained in:
Francisco Facioni 2014-09-22 16:17:58 -03:00
parent ef8b3f3276
commit ab0bad541d

View File

@ -441,7 +441,7 @@ class Morris.Grid extends Morris.EventEmitter
.attr('stroke-width', @options.goalStrokeWidth)
drawEvent: (event, color) ->
x = Math.floor(@transX(goal)) + 0.5
x = Math.floor(@transX(event)) + 0.5
if not @options.horizontal
path = "M#{x},#{@yStart}V#{@yEnd}"
else