diff options
author | wout <wout@impinc.co.uk> | 2014-06-21 21:19:06 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-21 21:19:06 +0200 |
commit | 0bb294ad9189797014b1e1bf55e41ca4b1ead19e (patch) | |
tree | 4e4c5004beea90033e9fe80846c9a4c0b2b2ba30 /src/parent.js | |
parent | 629a01b3bbf057eae7e0599433bbbcb28acd8587 (diff) | |
download | svg.js-0bb294ad9189797014b1e1bf55e41ca4b1ead19e.tar.gz svg.js-0bb294ad9189797014b1e1bf55e41ca4b1ead19e.zip |
Back on track with the specs
Diffstat (limited to 'src/parent.js')
-rwxr-xr-x | src/parent.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/parent.js b/src/parent.js index 095120a..bde35da 100755 --- a/src/parent.js +++ b/src/parent.js @@ -79,9 +79,8 @@ SVG.Parent = SVG.invent({ while(this.node.hasChildNodes()) this.node.removeChild(this.node.lastChild) - // Ensure new defs node - if (this instanceof SVG.Doc) - this.defs() + // Remove defs reference + delete this._defs return this } |