Skip to content

Commit 3bc7970

Browse files
committed
More minification
1 parent f4ef595 commit 3bc7970

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/controllers/controller.line.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ module.exports = DatasetController.extend({
320320
setHoverStyle: function(point) {
321321
var model = point._model;
322322
var options = point._options;
323+
var getHoverColor = helpers.getHoverColor;
323324

324325
point.$previousStyle = {
325326
backgroundColor: model.backgroundColor,
@@ -328,8 +329,8 @@ module.exports = DatasetController.extend({
328329
radius: model.radius
329330
};
330331

331-
model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, helpers.getHoverColor(options.backgroundColor));
332-
model.borderColor = valueOrDefault(options.hoverBorderColor, helpers.getHoverColor(options.borderColor));
332+
model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));
333+
model.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor));
333334
model.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth);
334335
model.radius = valueOrDefault(options.hoverRadius, options.radius);
335336
},

0 commit comments

Comments
 (0)