mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Replace accidental beans access with direct access of internal property.
This commit is contained in:
parent
eb6b838cf4
commit
8b2709f5d8
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue