From 484d74160b829a5e75011c62224cbb149f0b236e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 3 Mar 2011 17:27:56 +0000 Subject: [PATCH] Set private properties directly in initialize(), no need to call setters. --- src/color/GradientStop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/color/GradientStop.js b/src/color/GradientStop.js index ccaf887a..21c0944f 100644 --- a/src/color/GradientStop.js +++ b/src/color/GradientStop.js @@ -3,8 +3,8 @@ var GradientStop = Base.extend({ // TODO: support midPoint? (initial tests didn't look nice) initialize: function(color, rampPoint) { - this.color = Color.read([color]); - this.rampPoint = rampPoint !== null ? rampPoint : 0; + this._color = Color.read([color]); + this._rampPoint = rampPoint !== null ? rampPoint : 0; }, getRampPoint: function() {