From eb6b838cf4eedadb11c59ce8922c508508f7832b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com> Date: Wed, 18 May 2011 09:38:20 +0100 Subject: [PATCH] Simplify GradientStop#setRampPoint(). --- src/color/GradientStop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color/GradientStop.js b/src/color/GradientStop.js index 08c0220e..faef7006 100644 --- a/src/color/GradientStop.js +++ b/src/color/GradientStop.js @@ -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() {