aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Dom.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-01 22:21:26 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-01 22:21:26 +0100
commit135f9d03c11a295ff5a9e4bdc4683e8ea35e2f38 (patch)
treeb3190a71b22e6ab7d220824939101bfd1e9f41ce /src/elements/Dom.js
parentf262dd7128b79ca6e7a451725c595423d163fad8 (diff)
downloadsvg.js-135f9d03c11a295ff5a9e4bdc4683e8ea35e2f38.tar.gz
svg.js-135f9d03c11a295ff5a9e4bdc4683e8ea35e2f38.zip
Release 3.0.03.0.0
Diffstat (limited to 'src/elements/Dom.js')
-rw-r--r--src/elements/Dom.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/Dom.js b/src/elements/Dom.js
index 45a41ca..7e22b05 100644
--- a/src/elements/Dom.js
+++ b/src/elements/Dom.js
@@ -156,7 +156,7 @@ export default class Dom extends EventTarget {
if (!type) return parent
// loop trough ancestors if type is given
- while (parent) { // FIXME: That shouldnt be neccessary
+ while (parent) {
if (typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent
if (!parent.node.parentNode || parent.node.parentNode.nodeName === '#document' || parent.node.parentNode.nodeName === '#document-fragment') return null // #759, #720
parent = adopt(parent.node.parentNode)