Some clean up related to hidden _uncached parameter.

This commit is contained in:
Jürg Lehni 2014-09-27 22:03:54 +02:00
parent b8530935a7
commit cc8b23894c

View file

@ -186,7 +186,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
*/
getParameter: function(_uncached) {
if ((this._parameter == null || _uncached) && this._point) {
var curve = this.getCurve(_uncached && this._point);
var curve = this.getCurve(_uncached);
this._parameter = curve && curve.getParameterOf(this._point);
}
return this._parameter;
@ -201,7 +201,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
*/
getPoint: function(_uncached) {
if ((!this._point || _uncached) && this._parameter != null) {
var curve = this.getCurve();
var curve = this.getCurve(_uncached);
this._point = curve && curve.getPointAt(this._parameter, true);
}
return this._point;