Permalink
Browse files

fixed semicolon fail

  • Loading branch information...
1 parent c1f9718 commit a1155ad58370b2a05c2fd2c5a6287d834eba3942 @mrflix committed Nov 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/color.js
View
2 js/color.js
@@ -55,7 +55,7 @@ var color = {
}
},
hexFromRgb: function(rgb){
- var hexcode = this.toHex(rgb[0])+this.toHex(rgb[1])+this.toHex(rgb[2]);
+ var hexcode = this.toHex(rgb[0])+this.toHex(rgb[1])+this.toHex(rgb[2]),
parts = hexcode.split("");
// "000" instead of "000000"
return (parts[0]===parts[1]) && (parts[2]===parts[3]) && (parts[4]==parts[5]) ? parts[0]+parts[2]+parts[4] : hexcode;

0 comments on commit a1155ad

Please sign in to comment.