mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
CurveLocation: fix mistakes.
This commit is contained in:
parent
aa043428c0
commit
594c11fedd
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ CurveLocation = Base.extend({
|
||||||
getParameter: function() {
|
getParameter: function() {
|
||||||
if (this._parameter == -1 && this._point != null)
|
if (this._parameter == -1 && this._point != null)
|
||||||
this._parameter = this._curve.getParameter(point);
|
this._parameter = this._curve.getParameter(point);
|
||||||
return this._parameter != -1 ? parameter : null;
|
return this._parameter != -1 ? this._parameter : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -110,7 +110,7 @@ CurveLocation = Base.extend({
|
||||||
* The item this curve belongs to, if any.
|
* The item this curve belongs to, if any.
|
||||||
*/
|
*/
|
||||||
getItem: function() {
|
getItem: function() {
|
||||||
return this._curve != null ? curve.getPath() : null;
|
return this._curve != null ? this._curve.getPath() : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
toString: function() {
|
toString: function() {
|
||||||
|
|
Loading…
Reference in a new issue