diff options
Diffstat (limited to 'src/parent.js')
-rw-r--r-- | src/parent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parent.js b/src/parent.js index 86c7db8..30f7662 100644 --- a/src/parent.js +++ b/src/parent.js @@ -22,7 +22,7 @@ SVG.Parent = SVG.invent({ i = i == null ? this.children().length : i // add element references - this.node.insertBefore(element.node, this.node.childNodes[i] || null) + this.node.insertBefore(element.node, SVG.utils.filterSVGElements(this.node.childNodes)[i] || null) } return this |