From ab0bad541d8546613e8dc4e6a2500f8dd6debeab Mon Sep 17 00:00:00 2001 From: Francisco Facioni Date: Mon, 22 Sep 2014 16:17:58 -0300 Subject: [PATCH] Fixes copy&paste error in event This was referenced in https://github.com/morrisjs/morris.js/commit/715771431c9b3b8b54a3ebcfc6dc72e7ffa29536 --- lib/morris.grid.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/morris.grid.coffee b/lib/morris.grid.coffee index 3c85072..0a27623 100644 --- a/lib/morris.grid.coffee +++ b/lib/morris.grid.coffee @@ -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