diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-04-15 19:53:58 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-04-15 19:53:58 +0200 |
commit | 30df220d96e813e0dab08a08ebb00ba9cfa25352 (patch) | |
tree | ef3cfd57acf3a25e1d5aa3dddfd1c7cda3cda924 /dist/svg.js | |
parent | bbea0c86882742f859bd133ad2c4a4d15dd9a172 (diff) | |
download | svg.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.js | 7 |
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() } } |