mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Simplify GradientStop#setRampPoint().
This commit is contained in:
parent
fc52944ee8
commit
eb6b838cf4
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ var GradientStop = this.GradientStop = Base.extend({
|
|||
},
|
||||
|
||||
setRampPoint: function(rampPoint) {
|
||||
this._rampPoint = rampPoint !== null ? rampPoint : 0;
|
||||
this._rampPoint = rampPoint || 0;
|
||||
},
|
||||
|
||||
getColor: function() {
|
||||
|
|
Loading…
Reference in a new issue