diff options
Diffstat (limited to 'src/utils/pathParser.js')
-rw-r--r-- | src/utils/pathParser.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/pathParser.js b/src/utils/pathParser.js index 54e22e6..1d0ee86 100644 --- a/src/utils/pathParser.js +++ b/src/utils/pathParser.js @@ -57,7 +57,7 @@ const pathHandlers = { const mlhvqtcsaz = 'mlhvqtcsaz'.split('') -for (var i = 0, il = mlhvqtcsaz.length; i < il; ++i) { +for (let i = 0, il = mlhvqtcsaz.length; i < il; ++i) { pathHandlers[mlhvqtcsaz[i]] = (function (i) { return function (c, p, p0) { if (i === 'H') c[0] = c[0] + p.x @@ -66,7 +66,7 @@ for (var i = 0, il = mlhvqtcsaz.length; i < il; ++i) { c[5] = c[5] + p.x c[6] = c[6] + p.y } else { - for (var j = 0, jl = c.length; j < jl; ++j) { + for (let j = 0, jl = c.length; j < jl; ++j) { c[j] = c[j] + (j % 2 ? p.y : p.x) } } |