diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-09 11:01:56 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-09 11:01:56 +1000 |
commit | 6a57b8cd9da1d0abc77b6ba4a2ce3d15fe675048 (patch) | |
tree | 106388badb426ae6b5f079de80440fe69e7dcbef /src/elements/Svg.js | |
parent | 36b65881bd090e105d19952d10b3681313daf2af (diff) | |
download | svg.js-6a57b8cd9da1d0abc77b6ba4a2ce3d15fe675048.tar.gz svg.js-6a57b8cd9da1d0abc77b6ba4a2ce3d15fe675048.zip |
fixes and tests
- fixed flatten and ungroup
- added position argument to ungroup, toParent and toRoot
- added tests for Container
Diffstat (limited to 'src/elements/Svg.js')
-rw-r--r-- | src/elements/Svg.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/elements/Svg.js b/src/elements/Svg.js index 8699327..51f4202 100644 --- a/src/elements/Svg.js +++ b/src/elements/Svg.js @@ -25,10 +25,8 @@ export default class Svg extends Container { } isRoot () { - return !this.node.parentNode || (!(this.node.parentNode instanceof globals.window.SVGElement) && this.node.parentNode.nodeName !== '#document-fragment') - // || this.node.parentNode.nodeName === '#document' } // Add namespaces |