summaryrefslogtreecommitdiffstats
path: root/src/elements
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 13:29:15 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 13:29:15 +0100
commitb9f5c216c6eb75f3a00c6b121da5a72885286fa0 (patch)
treef7af03f1119dc0bb852a7ac98702d709ba87e403 /src/elements
parent7f67bc4ffa044607925246d846f544c87d5e00fa (diff)
downloadsvg.js-b9f5c216c6eb75f3a00c6b121da5a72885286fa0.tar.gz
svg.js-b9f5c216c6eb75f3a00c6b121da5a72885286fa0.zip
ticking off the last checkbox of (#645). return List whenever possible
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/Dom.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/elements/Dom.js b/src/elements/Dom.js
index 192b9bd..6d35f1e 100644
--- a/src/elements/Dom.js
+++ b/src/elements/Dom.js
@@ -6,10 +6,11 @@ import {
makeInstance,
register
} from '../utils/adopter.js'
+import { globals } from '../utils/window.js'
import { map } from '../utils/utils.js'
import { ns } from '../modules/core/namespaces.js'
-import { globals } from '../utils/window.js'
import EventTarget from '../types/EventTarget.js'
+import List from '../types/List.js'
import attr from '../modules/core/attr.js'
export default class Dom extends EventTarget {
@@ -43,9 +44,9 @@ export default class Dom extends EventTarget {
// Returns all child elements
children () {
- return map(this.node.children, function (node) {
+ return new List(map(this.node.children, function (node) {
return adopt(node)
- })
+ }))
}
// Remove all elements in this container