From 30e92c8a357dba80ff3da0d8c43ce4dbdb9c861a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com> Date: Wed, 6 Jul 2011 22:14:44 +0200 Subject: [PATCH] Simplify CurveLocation#getPoint(), as missing parameter cannot be determined if point is also undefined. --- src/path/CurveLocation.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index 978cc16a..435cc836 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -146,11 +146,8 @@ CurveLocation = Base.extend(/** @lends CurveLocation# */{ * @bean */ getPoint: function() { - if (!this._point && this._curve) { - var parameter = this.getParameter(); - if (parameter != null) - this._point = this._curve.getPoint(parameter); - } + if (!this._point && this._curve && this._parameter != null) + this._point = this._curve.getPoint(this._parameter); return this._point; },