@@ -974,7 +974,7 @@ var Scale = Element.extend({
974974 return alignPixel ( chart , pixel , axisWidth ) ;
975975 } ;
976976 var borderValue , i , tick , lineValue , alignedLineValue ;
977- var tx1 , ty1 , tx2 , ty2 , x1 , y1 , x2 , y2 , lineWidth , lineColor , borderDash , borderDashOffset ;
977+ var tx1 , ty1 , tx2 , ty2 , x1 , y1 , x2 , y2 ;
978978
979979 if ( position === 'top' ) {
980980 borderValue = alignBorderValue ( me . bottom ) ;
@@ -1005,10 +1005,10 @@ var Scale = Element.extend({
10051005 for ( i = 0 ; i < ticksLength ; ++ i ) {
10061006 tick = ticks [ i ] || { } ;
10071007
1008- lineWidth = valueAtIndexOrDefault ( gridLines . lineWidth , i , 1 ) ;
1009- lineColor = valueAtIndexOrDefault ( gridLines . color , i , 'rgba(0,0,0,0.1)' ) ;
1010- borderDash = gridLines . borderDash || [ ] ;
1011- borderDashOffset = gridLines . borderDashOffset || 0.0 ;
1008+ const lineWidth = valueAtIndexOrDefault ( gridLines . lineWidth , i , 1 ) ;
1009+ const lineColor = valueAtIndexOrDefault ( gridLines . color , i , 'rgba(0,0,0,0.1)' ) ;
1010+ const borderDash = gridLines . borderDash || [ ] ;
1011+ const borderDashOffset = gridLines . borderDashOffset || 0.0 ;
10121012
10131013 lineValue = getPixelForGridLine ( me , tick . _index || i , offsetGridLines ) ;
10141014
0 commit comments