From 05bfb7e964c9de92d050a016d8e1f09dc1c55a4f Mon Sep 17 00:00:00 2001 From: Tom Loudon Date: Thu, 12 May 2016 22:24:20 +0100 Subject: [PATCH] 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 --- src/core/core.helpers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/core.helpers.js b/src/core/core.helpers.js index 60673d8fa..5d4094713 100644 --- a/src/core/core.helpers.js +++ b/src/core/core.helpers.js @@ -944,6 +944,7 @@ module.exports = function(Chart) { } }; helpers.getHoverColor = function(color) { + /* global CanvasPattern */ return (color instanceof CanvasPattern) ? color : helpers.color(color).saturate(0.5).darken(0.1).rgbString();