From 3551c8d1c0105049bdfb91b53679b16bcecb308f Mon Sep 17 00:00:00 2001 From: Ruben Almeida Date: Thu, 26 Jan 2017 20:51:17 +0100 Subject: [PATCH] Add namespace Add a namespace to allow storing the colorpicker into "namespace" instead "window". Need: create the variable CPNamespace before calling executing the script. --- colors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colors.js b/colors.js index 4622fbd..aae1735 100644 --- a/colors.js +++ b/colors.js @@ -729,4 +729,4 @@ // return Math.max(min, Math.min(max, value)); // faster?? return (value > max ? max : value < min ? min : value); } -})(window); +})(window, CPNamespace||window);