aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Fragment.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-06-13 01:43:37 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-06-13 01:43:37 +0200
commit03322672782a6318b019eff33fe44ec800d6f12c (patch)
tree9d807e1585cf28a1ea98e87b855932dba00f1880 /src/elements/Fragment.js
parent8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff)
downloadsvg.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.js5
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')