From 1d37944c891046d3e179353d0375074b5954a543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 5 Jan 2014 17:42:46 +0100 Subject: [PATCH] Fix alpha support in new Color#toCSS() code. --- src/style/Color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style/Color.js b/src/style/Color.js index e00ec80c..62543bd4 100644 --- a/src/style/Color.js +++ b/src/style/Color.js @@ -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)