Clean up code.

This commit is contained in:
Jürg Lehni 2011-06-02 09:34:10 +01:00
parent 1c886c125c
commit 9be8c154b7

View file

@ -98,8 +98,8 @@ var GradientColor = this.GradientColor = Color.extend({
hilite = Point.read(arguments).clone();
var vector = hilite.subtract(this._origin);
if (vector.getLength() > this._radius) {
this._hilite = this._origin.add(vector.normalize(
this._radius - 0.1));
this._hilite = this._origin.add(
vector.normalize(this._radius - 0.1));
} else {
this._hilite = hilite;
}