bebraw / colorjoe

Scaleable color picker with touch and AMD support (MIT)

Home Page:http://bebraw.github.io/colorjoe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo gives Uncaught TypeError: ONECOLOR is not a function

oshihirii opened this issue · comments

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

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.

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

I think this should be fixed now.