Skip to content

Commit

Permalink
Update earcut.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasplesch committed Nov 17, 2015
1 parent 842740f commit b26aae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/earcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function earcut(data, holeIndices, dim) {
}

earcutLinked(outerNode, triangles, dim, minX, minY, size);
if clockwise === false {triangles.reverse();}
if (clockwise === false) {triangles.reverse();}
return triangles;
}

Expand All @@ -57,7 +57,7 @@ function linkedList(data, start, end, dim, clockwise, oclockwise) {
var i, j, last;

// link points into circular doubly-linked list in the specified winding order
if (clockwise === oclockwise {
if (clockwise === oclockwise) {
for (i = start; i < end; i += dim) last = insertNode(i, data[i], data[i + 1], last);
} else {
for (i = end - dim; i >= start; i -= dim) last = insertNode(i, data[i], data[i + 1], last);
Expand Down

0 comments on commit b26aae8

Please sign in to comment.