aboutsummaryrefslogtreecommitdiffstats
path: root/src/flatten.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-10 13:51:06 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-10 13:51:06 +0200
commitbc9bfb6025e826b0ee6c827f1a356995d7f05d4c (patch)
tree6362deae3c6347b97dc902acdad26e9cb6047946 /src/flatten.js
parent932969dca9e1ef1090304d6a77ac8dd92a42730f (diff)
downloadsvg.js-bc9bfb6025e826b0ee6c827f1a356995d7f05d4c.tar.gz
svg.js-bc9bfb6025e826b0ee6c827f1a356995d7f05d4c.zip
use `children` instead of `childNodes` (#710), renamed `previous()` to `prev()`
Diffstat (limited to 'src/flatten.js')
-rw-r--r--src/flatten.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flatten.js b/src/flatten.js
index db9b9df..356a176 100644
--- a/src/flatten.js
+++ b/src/flatten.js
@@ -11,7 +11,7 @@ SVG.extend(SVG.Parent, {
})
// we need this so that SVG.Doc does not get removed
- this.node.firstChild || this.remove()
+ this.node.firstElementChild || this.remove()
return this
}