From 93d8f9c3645f3012886896f43502425f397ec4d6 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Sat, 19 Feb 2011 15:28:33 -0500 Subject: [PATCH] fix alpha channel being ignored in operations --- lib/less/tree/color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/tree/color.js b/lib/less/tree/color.js index 18fd2167..d4c6f3eb 100644 --- a/lib/less/tree/color.js +++ b/lib/less/tree/color.js @@ -61,7 +61,7 @@ tree.Color.prototype = { for (var c = 0; c < 3; c++) { result[c] = tree.operate(op, this.rgb[c], other.rgb[c]); } - return new(tree.Color)(result); + return new(tree.Color)(result, this.alpha + other.alpha); }, toHSL: function () {