aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Element.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-01-14 13:10:38 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-01-14 13:10:38 +0100
commit92b48d2da14a4870c348c50443a2e22d015c3828 (patch)
tree0972ed3174ee8ec05bd61e479d347b9bec2f1d56 /src/elements/Element.js
parentaec779cb019b5ad1c2ea709d9bf8e93d3d1e0c87 (diff)
downloadsvg.js-92b48d2da14a4870c348c50443a2e22d015c3828.tar.gz
svg.js-92b48d2da14a4870c348c50443a2e22d015c3828.zip
fixed `root()`, `textPath()`, `text.path()` and `path.text()` and removed font-family and size from the defaults list3.0.10
Diffstat (limited to 'src/elements/Element.js')
-rw-r--r--src/elements/Element.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/elements/Element.js b/src/elements/Element.js
index ba15f52..b13ddd5 100644
--- a/src/elements/Element.js
+++ b/src/elements/Element.js
@@ -15,8 +15,6 @@ import Dom from './Dom.js'
import List from '../types/List.js'
import SVGNumber from '../types/SVGNumber.js'
-const Svg = getClass(root)
-
export default class Element extends Dom {
constructor (node, attrs) {
super(node, attrs)
@@ -67,7 +65,7 @@ export default class Element extends Dom {
// Get parent document
root () {
- let p = this.parent(Svg)
+ let p = this.parent(getClass(root))
return p && p.root()
}