mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix yet another two bugs in CurveLocation.
This commit is contained in:
parent
08e779d560
commit
0680a50fd2
1 changed files with 2 additions and 2 deletions
|
@ -134,10 +134,10 @@ CurveLocation = Base.extend({
|
||||||
if (point)
|
if (point)
|
||||||
parts.push('point: ' + point);
|
parts.push('point: ' + point);
|
||||||
var index = this.getIndex();
|
var index = this.getIndex();
|
||||||
if (index >= 0)
|
if (index != null)
|
||||||
parts.push('index: ' + index);
|
parts.push('index: ' + index);
|
||||||
var parameter = this.getParameter();
|
var parameter = this.getParameter();
|
||||||
if (parameter != -1)
|
if (parameter != null)
|
||||||
parts.push('parameter: ' + parameter);
|
parts.push('parameter: ' + parameter);
|
||||||
return '{ ' + parts.join(', ') + ' }'
|
return '{ ' + parts.join(', ') + ' }'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue