Skip to content

Commit 3f5bd6c

Browse files
committed
Include helpers._alignPixel only once
1 parent 2354e2f commit 3f5bd6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/core.scale.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const Element = require('./core.element');
55
const helpers = require('../helpers/index');
66
const Ticks = require('./core.ticks');
77

8+
const alignPixel = helpers._alignPixel;
89
const isArray = helpers.isArray;
910
const isNullOrUndef = helpers.isNullOrUndef;
1011
const valueOrDefault = helpers.valueOrDefault;
@@ -976,7 +977,6 @@ class Scale extends Element {
976977
};
977978
var axisWidth = gridLines.drawBorder ? resolve([gridLines.lineWidth, 0], context, 0) : 0;
978979
var axisHalfWidth = axisWidth / 2;
979-
var alignPixel = helpers._alignPixel;
980980
var alignBorderValue = function(pixel) {
981981
return alignPixel(chart, pixel, axisWidth);
982982
};
@@ -1137,7 +1137,6 @@ class Scale extends Element {
11371137

11381138
var ctx = me.ctx;
11391139
var chart = me.chart;
1140-
var alignPixel = helpers._alignPixel;
11411140
var context = {
11421141
scale: me,
11431142
tick: me._ticksToDraw[0],

0 commit comments

Comments
 (0)