Skip to content

Commit 30e92c8

Browse files
committed
Simplify CurveLocation#getPoint(), as missing parameter cannot be determined if point is also undefined.
1 parent 17bdaf6 commit 30e92c8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/path/CurveLocation.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,8 @@ CurveLocation = Base.extend(/** @lends CurveLocation# */{
146146
* @bean
147147
*/
148148
getPoint: function() {
149-
if (!this._point && this._curve) {
150-
var parameter = this.getParameter();
151-
if (parameter != null)
152-
this._point = this._curve.getPoint(parameter);
153-
}
149+
if (!this._point && this._curve && this._parameter != null)
150+
this._point = this._curve.getPoint(this._parameter);
154151
return this._point;
155152
},
156153

0 commit comments

Comments
 (0)