Simplify code.

This commit is contained in:
Jürg Lehni 2011-06-05 23:00:33 +01:00
parent 3d06f215c8
commit b035077d31

View file

@ -222,8 +222,8 @@ var PathFitter = Base.extend({
u[i - first] = u[i - first - 1]
+ this.points[i].getDistance(this.points[i - 1]);
}
for (var i = first + 1; i <= last; i++) {
u[i - first] = u[i - first] / u[last - first];
for (var i = 1, m = last - first; i <= m; i++) {
u[i] /= u[m];
}
return u;
},