summaryrefslogtreecommitdiffstats
path: root/src/selector.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/selector.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/selector.js')
-rw-r--r--src/selector.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/selector.js b/src/selector.js
index 8627521..b4ea05f 100644
--- a/src/selector.js
+++ b/src/selector.js
@@ -1,3 +1,5 @@
+/* global idFromReference */
+
// Method for getting an element by id
SVG.get = function (id) {
var node = document.getElementById(idFromReference(id) || id)