From: Tom Loudon Date: Thu, 12 May 2016 21:24:20 +0000 (+0100) Subject: Added CanvasPattern global flag for jshint X-Git-Tag: v2.1.3~3^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05bfb7e964c9de92d050a016d8e1f09dc1c55a4f;p=thirdparty%2FChart.js.git 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 --- 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();