Minor cleanup.

This commit is contained in:
Jürg Lehni 2016-06-13 09:00:29 +02:00
parent fc600595a4
commit 4c94553b81

View file

@ -464,7 +464,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
if (!t2Inside)
lenghts.push(c3.getLength(), c4.getLength());
var pt = this.getPoint(),
offset = Math.min.apply(null, lenghts) / 64,
offset = Math.min.apply(Math, lenghts) / 64,
v2 = t1Inside ? c2.getTangentAtTime(t1)
: c2.getPointAt(offset).subtract(pt),
v1 = t1Inside ? v2.negate()