Skip to content

Commit

Permalink
Fix error that occured when having hidden lines between shown lines
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Jan 16, 2015
1 parent a7e1cdd commit 93342c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/morris.line.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ class Morris.Line extends Morris.Grid
hilight: (index) =>
if @prevHilight isnt null and @prevHilight isnt index
for i in [0..@seriesPoints.length-1]
if @seriesPoints[i][@prevHilight]
if @hasToShow(i) and @seriesPoints[i][@prevHilight]
@seriesPoints[i][@prevHilight].animate @pointShrinkSeries(i)
if index isnt null and @prevHilight isnt index
for i in [0..@seriesPoints.length-1]
if @seriesPoints[i][index]
if @hasToShow(i) and @seriesPoints[i][index]
@seriesPoints[i][index].animate @pointGrowSeries(i)
@prevHilight = index

Expand Down

0 comments on commit 93342c5

Please sign in to comment.