bebraw / colorjoe

Scaleable color picker with touch and AMD support (MIT)
http://bebraw.github.io/colorjoe/
MIT License
569 stars 68 forks source link

demo gives Uncaught TypeError: ONECOLOR is not a function #44

Closed oshihirii closed 6 years ago

oshihirii commented 6 years ago

Running index.html from zip file downloaded from:

http://bebraw.github.io/colorjoe

gives this error in console:

Uncaught TypeError: ONECOLOR is not a function
    at getColor (colorjoe.js:703)
    at setup (colorjoe.js:595)
    at Function.rgb (colorjoe.js:472)
    at main (demo.js:19)
    at demo.js:3
oshihirii commented 6 years ago

I used the following files from demo site:

colorjoe.js onecolor.js

And it stopped errors I was getting when trying to use files from repo.

bebraw commented 6 years ago

I wonder what's the right fix for this. Onecolor is a global dependency. I could maybe point to a CDN instead. Any ideas?

bebraw commented 6 years ago

I think this should be fixed now.