Fix yet another two bugs in CurveLocation.

This commit is contained in:
Jürg Lehni 2011-05-01 13:18:36 +01:00
parent 08e779d560
commit 0680a50fd2

View file

@ -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(', ') + ' }'
}