From 1c43df1b852f9c4cd81f30134b7d04b9dc0ea54e Mon Sep 17 00:00:00 2001 From: cloudhead Date: Fri, 26 Feb 2010 22:29:51 -0500 Subject: [PATCH] round numbers on color operations --- lib/less/node/color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/node/color.js b/lib/less/node/color.js index a2fc9f3..ad18cba 100644 --- a/lib/less/node/color.js +++ b/lib/less/node/color.js @@ -18,7 +18,7 @@ node.Color.prototype = { eval: function () { return this }, toCSS: function () { return '#' + this.value.map(function (i) { - return i.toString(16); + return Math.round(i).toString(16); }).join(''); }, '+': function (other) {