mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Minor code optimization.
This commit is contained in:
parent
17cca2984b
commit
f4f4b3472f
1 changed files with 2 additions and 2 deletions
|
@ -694,11 +694,11 @@ PathItem.inject(new function() {
|
||||||
// to which we may switch might be, so check that.
|
// to which we may switch might be, so check that.
|
||||||
|| nextInter && isValid(nextInter._segment)))
|
|| nextInter && isValid(nextInter._segment)))
|
||||||
))
|
))
|
||||||
return inter;
|
break;
|
||||||
// If it's no match, continue with the next linked intersection.
|
// If it's no match, continue with the next linked intersection.
|
||||||
inter = inter._next;
|
inter = inter._next;
|
||||||
}
|
}
|
||||||
return start;
|
return inter || start;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort segments to give non-ambiguous segments the preference as
|
// Sort segments to give non-ambiguous segments the preference as
|
||||||
|
|
Loading…
Reference in a new issue