Simplify CurveLocation#getPoint(), as missing parameter cannot be determined if point is also undefined.

This commit is contained in:
Jürg Lehni 2011-07-06 22:14:44 +02:00
parent 17bdaf6fe4
commit 30e92c8a35

View file

@ -146,11 +146,8 @@ CurveLocation = Base.extend(/** @lends CurveLocation# */{
* @bean * @bean
*/ */
getPoint: function() { getPoint: function() {
if (!this._point && this._curve) { if (!this._point && this._curve && this._parameter != null)
var parameter = this.getParameter(); this._point = this._curve.getPoint(this._parameter);
if (parameter != null)
this._point = this._curve.getPoint(parameter);
}
return this._point; return this._point;
}, },