summaryrefslogtreecommitdiffstats
path: root/src/patharray.js
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-02-27 02:08:37 +1100
committerSaivan <savian@me.com>2018-02-27 02:08:37 +1100
commitdc6a25c008da1d84d49ffb4902a31fc5477e578e (patch)
treeb1edf8a35054f0bf16b6a310d4ef09d5f43d1851 /src/patharray.js
parent15637375c5a00b64ae6b493187e5791cfadbc94f (diff)
downloadsvg.js-dc6a25c008da1d84d49ffb4902a31fc5477e578e.tar.gz
svg.js-dc6a25c008da1d84d49ffb4902a31fc5477e578e.zip
Actually added the linter to gulp and fixed most errors
This commit fixes most of the errors raised by standard. There is still a strange call error, but that will be the focus of the next commit
Diffstat (limited to 'src/patharray.js')
-rw-r--r--src/patharray.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/patharray.js b/src/patharray.js
index d1b9420..d9ffecd 100644
--- a/src/patharray.js
+++ b/src/patharray.js
@@ -1,3 +1,5 @@
+/* globals arrayToString, pathRegReplace */
+
var pathHandlers = {
M: function (c, p, p0) {
p.x = p0.x = c[0]
@@ -229,9 +231,7 @@ SVG.extend(SVG.PathArray, {
if (array instanceof SVG.PathArray) return array.valueOf()
// prepare for parsing
- var i, x0, y0, s, seg, arr
- var x = 0
- var y = 0
+ var s
var paramCnt = { 'M': 2, 'L': 2, 'H': 1, 'V': 1, 'C': 6, 'S': 4, 'Q': 4, 'T': 2, 'A': 7, 'Z': 0 }
if (typeof array === 'string') {