Add namespace

Add a namespace to allow storing the colorpicker into "namespace" instead "window".
Need: create the variable CPNamespace before calling executing the script.
pull/47/head
Ruben Almeida 7 years ago committed by GitHub
parent 775b4e2086
commit 3551c8d1c0

@ -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);

Loading…
Cancel
Save