Replace accidental beans access with direct access of internal property.

This commit is contained in:
Jürg Lehni 2011-05-18 09:38:45 +01:00
parent eb6b838cf4
commit 8b2709f5d8
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ var GradientColor = this.GradientColor = Color.extend({
}
for (var i = 0, l = this.gradient._stops.length; i < l; i++) {
var stop = this.gradient._stops[i];
gradient.addColorStop(stop._rampPoint, stop.color.toCssString());
gradient.addColorStop(stop._rampPoint, stop._color.toCssString());
}
return gradient;
},

View file

@ -44,7 +44,7 @@ var GradientStop = this.GradientStop = Base.extend({
return true;
} else if (stop instanceof GradientStop) {
return this._color.equals(stop._color)
&& rampPoint == stop.rampPoint;
&& rampPoint == stop._rampPoint;
}
return false;
}