From b26aae8d4b8e6bfa4a173dfd29aaced54d1b8960 Mon Sep 17 00:00:00 2001 From: Andreas Plesch Date: Tue, 17 Nov 2015 16:15:08 -0500 Subject: [PATCH] Update earcut.js --- src/earcut.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/earcut.js b/src/earcut.js index ad30db4..bbb844b 100644 --- a/src/earcut.js +++ b/src/earcut.js @@ -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; } @@ -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);