Simplify GradientStop#setRampPoint().

This commit is contained in:
Jürg Lehni 2011-05-18 09:38:20 +01:00
parent fc52944ee8
commit eb6b838cf4

View file

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