aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-08 07:32:38 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-08 07:32:38 +1000
commitd927f2d225d74fd3b3f41b298a19f6ba075702cf (patch)
treef53da1457a2a2df4685367a4184bf244fbd83378 /src/main.js
parent099bf6efad9c9971d805c8496a63314d91a71692 (diff)
downloadsvg.js-d927f2d225d74fd3b3f41b298a19f6ba075702cf.tar.gz
svg.js-d927f2d225d74fd3b3f41b298a19f6ba075702cf.zip
added Fragment, completed Dom Tests, fixed `matches()` for document fragments
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js
index 3162752..12ebc7b 100644
--- a/src/main.js
+++ b/src/main.js
@@ -18,6 +18,7 @@ import Dom from './elements/Dom.js'
import Element from './elements/Element.js'
import Ellipse from './elements/Ellipse.js'
import EventTarget from './types/EventTarget.js'
+import Fragment from './elements/Fragment.js'
import Gradient from './elements/Gradient.js'
import Image from './elements/Image.js'
import Line from './elements/Line.js'
@@ -96,6 +97,7 @@ export { default as Dom } from './elements/Dom.js'
export { default as Element } from './elements/Element.js'
export { default as Ellipse } from './elements/Ellipse.js'
export { default as ForeignObject } from './elements/ForeignObject.js'
+export { default as Fragment } from './elements/Fragment.js'
export { default as Gradient } from './elements/Gradient.js'
export { default as G } from './elements/G.js'
export { default as A } from './elements/A.js'
@@ -154,8 +156,7 @@ extend(EventTarget, getMethodsFor('EventTarget'))
extend(Dom, getMethodsFor('Dom'))
extend(Element, getMethodsFor('Element'))
extend(Shape, getMethodsFor('Shape'))
-// extend(Element, getConstructor('Memory'))
-extend(Container, getMethodsFor('Container'))
+extend([ Container, Fragment ], getMethodsFor('Container'))
extend(Runner, getMethodsFor('Runner'))