mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Some clean up related to hidden _uncached parameter.
This commit is contained in:
parent
b8530935a7
commit
cc8b23894c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue