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:
parent
775b4e2086
commit
3551c8d1c0
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user