From ef4e80ecef30c8d0e26a8a4c0ac1937b2b5cd7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 19 May 2011 20:21:22 +0100 Subject: [PATCH] Replace getter calls with direct access of internal properties. --- src/color/Color.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/color/Color.js b/src/color/Color.js index 826e1fcc..0438104f 100644 --- a/src/color/Color.js +++ b/src/color/Color.js @@ -336,9 +336,9 @@ var Color = this.Color = Base.extend(new function() { var color = this.convert('rgb'), alpha = color.getAlpha(), components = [ - Math.round(color.getRed() * 255), - Math.round(color.getGreen() * 255), - Math.round(color.getBlue() * 255), + Math.round(color._red * 255), + Math.round(color._green * 255), + Math.round(color._blue * 255), alpha != null ? alpha : 1 ]; this._cssString = 'rgba(' + components.join(', ') + ')';