Fix error in Path#getLastCurve().

This commit is contained in:
Jürg Lehni 2011-04-26 17:48:36 +01:00
parent 77ad25ffba
commit c4ede92e81

View file

@ -65,7 +65,7 @@ var Path = this.Path = PathItem.extend({
getLastCurve: function() {
var curves = this.getCurves();
return curves[curves - 1];
return curves[curves.length - 1];
},
// TODO: Consider adding getSubPath(a, b), returning a part of the current