summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-04-15 19:53:58 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-04-15 19:53:58 +0200
commit30df220d96e813e0dab08a08ebb00ba9cfa25352 (patch)
treeef3cfd57acf3a25e1d5aa3dddfd1c7cda3cda924 /dist/svg.js
parentbbea0c86882742f859bd133ad2c4a4d15dd9a172 (diff)
downloadsvg.js-30df220d96e813e0dab08a08ebb00ba9cfa25352.tar.gz
svg.js-30df220d96e813e0dab08a08ebb00ba9cfa25352.zip
fixed bug in `add()` and `SVG.Doc().create()`
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/dist/svg.js b/dist/svg.js
index a536450..a02a56c 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@woutfierens.com>
* @license MIT
*
-* BUILT: Sat Apr 09 2016 18:26:54 GMT+0200 (Mitteleuropäische Sommerzeit)
+* BUILT: Fri Apr 15 2016 19:52:52 GMT+0200 (Mitteleuropäische Sommerzeit)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
@@ -3045,7 +3045,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
@@ -3753,10 +3753,11 @@ SVG.Doc = SVG.invent({
} else {
this.constructor.call(this, SVG.create('svg'))
element.appendChild(this.node)
+ this.size('100%', '100%')
}
// set svg element attributes and ensure defs node
- this.namespace().size('100%', '100%').defs()
+ this.namespace().defs()
}
}