mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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)
|
||||
parts.push('point: ' + point);
|
||||
var index = this.getIndex();
|
||||
if (index >= 0)
|
||||
if (index != null)
|
||||
parts.push('index: ' + index);
|
||||
var parameter = this.getParameter();
|
||||
if (parameter != -1)
|
||||
if (parameter != null)
|
||||
parts.push('parameter: ' + parameter);
|
||||
return '{ ' + parts.join(', ') + ' }'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue