Fix variable leackage.

This commit is contained in:
Jürg Lehni 2015-09-20 23:22:31 +02:00
parent b68be09c87
commit 1302df0cb8

View file

@ -415,8 +415,8 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
var m = (l + r) >>> 1, var m = (l + r) >>> 1,
loc2 = locations[m], loc2 = locations[m],
curve2 = loc2._curve, curve2 = loc2._curve,
path2 = curve2._path; path2 = curve2._path,
diff = path1 === path2 diff = path1 === path2
? curve1.getIndex() + loc._parameter ? curve1.getIndex() + loc._parameter
- curve2.getIndex() - loc2._parameter - curve2.getIndex() - loc2._parameter
// Sort by path id to group all locs on same path. // Sort by path id to group all locs on same path.