Skip to content

Commit

Permalink
Fix alpha support in new Color#toCSS() code.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Jan 5, 2014
1 parent 1ee5b2c commit 1d37944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style/Color.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ var Color = Base.extend(new function() {
convert(components[2])
];
if (alpha < 1)
components.push(val < 0 ? 0 : val);
components.push(alpha < 0 ? 0 : alpha);
return hex
? '#' + ((1 << 24) + (components[0] << 16)
+ (components[1] << 8)
Expand Down

0 comments on commit 1d37944

Please sign in to comment.