From 13212e4392d95f57f2003699fccf1e7bfea31f47 Mon Sep 17 00:00:00 2001 From: xcjs Date: Fri, 29 Aug 2014 21:11:51 -0400 Subject: [PATCH] Fixes #1 - Moved the 'use strict'; statement inside the function body to limit its scope if gridfader.js is minified into another script. --- gridfader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gridfader.js b/gridfader.js index 49871e3..06b8f82 100755 --- a/gridfader.js +++ b/gridfader.js @@ -1,6 +1,6 @@ -'use strict'; - var GridFader = function(canvasId) { + 'use strict'; + this.palette = new Array(); this.gridColor = null; this.canvas = null;