How to access colorjoe without using a global variable?
Closed this issue · 3 comments
oshihirii commented
I am updating the colorpicker in an on event with:
joe.set("rgb(" + red_value + "," + green_value + "," + blue_value + ")");
joe
is currently a global variable set up on document ready:
joe = colorjoe.hsl('hslPicker', '#113c38', ['currentColor',['fields', {space: 'RGB', limit: 255, fix: 2}]]);
How can I access colorjoe without using a global variable?
bebraw commented
Hi,
Can you set up a standalone example? I'm missing something obvious here. Why/where do you need to access it?
bebraw commented
@oshihirii Hey, could you set up an example of this?
bebraw commented
Let's close since we repackaged this.