diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2019-11-01 13:37:24 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2019-11-01 13:37:24 +0100 |
commit | 2827a27531c661726d204d6da9d17c6f72d8e404 (patch) | |
tree | a4180b1f462685cce0c314be16511a630d222b05 /src/elements/Dom.js | |
parent | 0748382e9859c31253d93b0c258487da362bcade (diff) | |
download | svg.js-2827a27531c661726d204d6da9d17c6f72d8e404.tar.gz svg.js-2827a27531c661726d204d6da9d17c6f72d8e404.zip |
Updated dependencies to newest version, new linter fixed stuff
Diffstat (limited to 'src/elements/Dom.js')
-rw-r--r-- | src/elements/Dom.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/elements/Dom.js b/src/elements/Dom.js index 3acd199..0c4ecb3 100644 --- a/src/elements/Dom.js +++ b/src/elements/Dom.js @@ -242,7 +242,7 @@ export default class Dom extends EventTarget { // If the user wants outerHTML we need to process this node, too if (outerHTML) { - let result = svgOrFn(current) + const result = svgOrFn(current) current = result || current // The user does not want this node? Well, then he gets nothing @@ -251,8 +251,8 @@ export default class Dom extends EventTarget { // Deep loop through all children and apply modifier current.each(function () { - let result = svgOrFn(this) - let _this = result || this + const result = svgOrFn(this) + const _this = result || this // If modifier returns false, discard node if (result === false) { @@ -288,7 +288,7 @@ export default class Dom extends EventTarget { fragment.appendChild(well.firstElementChild) } - let parent = this.parent() + const parent = this.parent() // Add the whole fragment at once return outerHTML |