diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
commit | 03322672782a6318b019eff33fe44ec800d6f12c (patch) | |
tree | 9d807e1585cf28a1ea98e87b855932dba00f1880 /src/elements/Fragment.js | |
parent | 8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff) | |
download | svg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip |
dependency updates, easier formatting
Diffstat (limited to 'src/elements/Fragment.js')
-rw-r--r-- | src/elements/Fragment.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/elements/Fragment.js b/src/elements/Fragment.js index d2c4764..ece3046 100644 --- a/src/elements/Fragment.js +++ b/src/elements/Fragment.js @@ -3,12 +3,12 @@ import { globals } from '../utils/window.js' import { register, create } from '../utils/adopter.js' class Fragment extends Dom { - constructor (node = globals.document.createDocumentFragment()) { + constructor(node = globals.document.createDocumentFragment()) { super(node) } // Import / Export raw xml - xml (xmlOrFn, outerXML, ns) { + xml(xmlOrFn, outerXML, ns) { if (typeof xmlOrFn === 'boolean') { ns = outerXML outerXML = xmlOrFn @@ -27,7 +27,6 @@ class Fragment extends Dom { // Act as setter if we got a string return super.xml(xmlOrFn, false, ns) } - } register(Fragment, 'Fragment') |