Better variables scoping

This commit is contained in:
Frederic Junod
2018-01-17 16:07:36 +01:00
parent 4a6331377f
commit 039d4dc714
22 changed files with 74 additions and 134 deletions

View File

@@ -230,8 +230,7 @@ SimpleGeometry.prototype.setLayout = function(layout, coordinates, nesting) {
if (layout) {
stride = getStrideForLayout(layout);
} else {
let i;
for (i = 0; i < nesting; ++i) {
for (let i = 0; i < nesting; ++i) {
if (coordinates.length === 0) {
this.layout = GeometryLayout.XY;
this.stride = 2;