aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Svg.js')
-rw-r--r--src/elements/Svg.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/elements/Svg.js b/src/elements/Svg.js
index 6172454..ab7d89f 100644
--- a/src/elements/Svg.js
+++ b/src/elements/Svg.js
@@ -17,9 +17,9 @@ export default class Svg extends Container {
}
isRoot () {
- return !this.node.parentNode ||
- !(this.node.parentNode instanceof globals.window.SVGElement) ||
- this.node.parentNode.nodeName === '#document'
+ return !this.node.parentNode
+ || !(this.node.parentNode instanceof globals.window.SVGElement)
+ || this.node.parentNode.nodeName === '#document'
}
// Check if this is a root svg
@@ -42,8 +42,8 @@ export default class Svg extends Container {
defs () {
if (!this.isRoot()) return this.root().defs()
- return adopt(this.node.getElementsByTagName('defs')[0]) ||
- this.put(new Defs())
+ return adopt(this.node.getElementsByTagName('defs')[0])
+ || this.put(new Defs())
}
// custom parent method