diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index 80cc4b9e..adb17b69 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -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(', ') + ' }' }