mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Set private properties directly in initialize(), no need to call setters.
This commit is contained in:
parent
0efc23b25c
commit
484d74160b
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue