diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2021-01-13 17:26:33 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2021-01-13 17:26:33 +0100 |
commit | 4524c20b48abe08e69c25a7382a289592d147496 (patch) | |
tree | 3e475fe673d5acd800180282e84df03d396106f3 /src/elements/A.js | |
parent | 4f4dc2afa62cb899a5cae72c359150f8adf27edb (diff) | |
download | svg.js-4524c20b48abe08e69c25a7382a289592d147496.tar.gz svg.js-4524c20b48abe08e69c25a7382a289592d147496.zip |
update dependencies, apply new linter fixes
Diffstat (limited to 'src/elements/A.js')
-rw-r--r-- | src/elements/A.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/elements/A.js b/src/elements/A.js index 478c36d..173fc92 100644 --- a/src/elements/A.js +++ b/src/elements/A.js @@ -32,17 +32,17 @@ registerMethods({ }, Element: { unlink () { - var link = this.linker() + const link = this.linker() if (!link) return this - var parent = link.parent() + const parent = link.parent() if (!parent) { return this.remove() } - var index = parent.index(link) + const index = parent.index(link) parent.add(this, index) link.remove() @@ -50,7 +50,7 @@ registerMethods({ }, linkTo (url) { // reuse old link if possible - var link = this.linker() + let link = this.linker() if (!link) { link = new A() @@ -66,7 +66,7 @@ registerMethods({ return this }, linker () { - var link = this.parent() + const link = this.parent() if (link && link.node.nodeName.toLowerCase() === 'a') { return link } |