Added CanvasPattern global flag for jshint

The core.helpers file was failing linting checks as the global CanvasPattern was not defined. Added the `/* global CanvasGradient */` statement to make linting pass. Updates chartjs/Chart.js#1323
This commit is contained in:
Tom Loudon 2016-05-12 22:24:20 +01:00
parent 04d4adda05
commit 44cc68d0ae

View File

@ -944,6 +944,7 @@ module.exports = function(Chart) {
}
};
helpers.getHoverColor = function(color) {
/* global CanvasGradient */
return (color instanceof CanvasPattern) ?
color :
helpers.color(color).saturate(0.5).darken(0.1).rgbString();