2
0
mirror of https://github.com/PitPik/colorPicker.git synced 2025-09-24 16:40:57 -06:00

Add namespace

Add a namespace to allow storing the colorpicker into "namespace" instead "window".
Need: create the variable CPNamespace before calling executing the script.
This commit is contained in:
Ruben Almeida 2017-01-26 20:51:17 +01:00 committed by GitHub
parent 775b4e2086
commit 3551c8d1c0

View File

@ -729,4 +729,4 @@
// return Math.max(min, Math.min(max, value)); // faster?? // return Math.max(min, Math.min(max, value)); // faster??
return (value > max ? max : value < min ? min : value); return (value > max ? max : value < min ? min : value);
} }
})(window); })(window, CPNamespace||window);