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/utils/adopter.js | |
parent | 4f4dc2afa62cb899a5cae72c359150f8adf27edb (diff) | |
download | svg.js-4524c20b48abe08e69c25a7382a289592d147496.tar.gz svg.js-4524c20b48abe08e69c25a7382a289592d147496.zip |
update dependencies, apply new linter fixes
Diffstat (limited to 'src/utils/adopter.js')
-rw-r--r-- | src/utils/adopter.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js index a440e4c..048eb9c 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -29,7 +29,7 @@ export function makeInstance (element, isHTML = false) { } // Make sure, that HTML elements are created with the correct namespace - var wrapper = isHTML ? globals.document.createElement('div') : create('svg') + const wrapper = isHTML ? globals.document.createElement('div') : create('svg') wrapper.innerHTML = element // We can use firstChild here because we know, @@ -58,7 +58,7 @@ export function adopt (node) { } // initialize variables - var className = capitalize(node.nodeName || 'Dom') + let className = capitalize(node.nodeName || 'Dom') // Make sure that gradients are adopted correctly if (className === 'LinearGradient' || className === 'RadialGradient') { @@ -102,7 +102,7 @@ export function eid (name) { // Deep new id assignment export function assignNewId (node) { // do the same for SVG child nodes as well - for (var i = node.children.length - 1; i >= 0; i--) { + for (let i = node.children.length - 1; i >= 0; i--) { assignNewId(node.children[i]) } @@ -116,7 +116,7 @@ export function assignNewId (node) { // Method for extending objects export function extend (modules, methods) { - var key, i + let key, i modules = Array.isArray(modules) ? modules : [ modules ] |