Skip to content

Commit

Permalink
Add a note
Browse files Browse the repository at this point in the history
  • Loading branch information
bebraw committed Jul 7, 2012
1 parent c6788fb commit b6a86e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/colorjoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,9 @@ function setup(o) {
set: function(c) {
var oldCol = this.get();
col = cbs.init(c, xy, z);
console.log(oldCol.toHex(), col.toHex(), color.rgba(c).toHex());

// XXX: does not work perfectly always since hex does not yield same
// hex always even if same! might work better with other color lib
if(oldCol.toHex() != col.toHex()) changed();

return ob;
Expand Down
Loading

0 comments on commit b6a86e3

Please sign in to comment.