From 32fb1b065ecdb41a7870b9f0f07edf504b3db5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 19 May 2011 20:19:36 +0100 Subject: [PATCH] No need to check for colorType since #convert() already performs this optimisation. --- src/color/Color.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/color/Color.js b/src/color/Color.js index 16a13a3f..7c47a4a7 100644 --- a/src/color/Color.js +++ b/src/color/Color.js @@ -333,9 +333,7 @@ var Color = this.Color = Base.extend(new function() { toCssString: function() { if (!this._cssString) { - var color = this._colorType === 'rgb' - ? this - : this.convert('rgb'); + var color = this.convert('rgb'); var alpha = color.getAlpha(); var components = [ Math.round(color.getRed() * 255),