Merge pull request #1193 from iconexperience/patch-1

Fix two issues in PathItem.compare()
This commit is contained in:
Jürg Lehni 2016-11-22 19:05:06 -05:00 committed by GitHub
commit 63cb7bd536

View file

@ -776,11 +776,11 @@ var PathItem = Item.extend(/** @lends PathItem# */{
var ok = false;
if (path) {
var paths1 = this._children || [this],
paths2 = path._children.slice() || [path],
paths2 = path._children ? path._children.slice() : [path],
length1 = paths1.length,
length2 = paths2.length,
matched = [],
count;
count = 0;
ok = true;
for (var i1 = length1 - 1; i1 >= 0 && ok; i1--) {
var path1 = paths1[i1];