Merge pull request #1209 from iconexperience/patch-3

Fix length comparison in Path.compare()
This commit is contained in:
Jürg Lehni 2016-12-29 10:55:31 +01:00 committed by GitHub
commit 27a2757542

View file

@ -1558,7 +1558,7 @@ var Path = PathItem.extend(/** @lends Path# */{
if (!length1 || !length2) {
// If one path defines curves and the other doesn't, we can't have
// matching geometries.
return length1 ^ length2;
return length1 == length2;
}
var v1 = curves1[0].getValues(),
values2 = [],