diff --git a/src/controllers/controller.line.js b/src/controllers/controller.line.js index d68c0a92802..14f55c3c975 100644 --- a/src/controllers/controller.line.js +++ b/src/controllers/controller.line.js @@ -328,8 +328,9 @@ module.exports = DatasetController.extend({ radius: model.radius }; - model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, helpers.getHoverColor(options.backgroundColor)); - model.borderColor = valueOrDefault(options.hoverBorderColor, helpers.getHoverColor(options.borderColor)); + var getHoverColor = helpers.getHoverColor; + model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor)); + model.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor)); model.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth); model.radius = valueOrDefault(options.hoverRadius, options.radius); },