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
*/
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;
},