Minor code clean-up.

This commit is contained in:
Jürg Lehni 2015-08-24 12:59:10 +02:00
parent 3946bcb04e
commit e242634011

View file

@ -178,10 +178,10 @@ PathItem.inject(new function() {
// number along overlaps. // number along overlaps.
// Calculate the new winding number based on current // Calculate the new winding number based on current
// number and role in the operation. // number and role in the operation.
var newWind = var path = getMainPath(seg),
wind === 0 && getMainPath(seg) === _path1 ? 1 : newWind = wind === 0 && path === _path1 ? 1
wind === 1 && getMainPath(seg) === _path2 ? 2 : : wind === 1 && path === _path2 ? 2
null; : null;
if (newWind != null) { if (newWind != null) {
// Check against the winding of the intersecting // Check against the winding of the intersecting
// path, to exclude islands in compound paths, where // path, to exclude islands in compound paths, where
@ -696,8 +696,8 @@ PathItem.inject(new function() {
Path.inject(/** @lends Path# */{ Path.inject(/** @lends Path# */{
/** /**
* Private method that returns and caches all the curves in this Path, which * Private method that returns and caches all the curves in this Path,
* are monotonically decreasing or increasing in the y-direction. * which are monotonically decreasing or increasing in the y-direction.
* Used by getWinding(). * Used by getWinding().
*/ */
_getMonoCurves: function() { _getMonoCurves: function() {