Set private properties directly in initialize(), no need to call setters.

This commit is contained in:
Jürg Lehni 2011-03-03 17:27:56 +00:00
parent 0efc23b25c
commit 484d74160b

View file

@ -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() {