summaryrefslogtreecommitdiffstats
path: root/src/parent.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-06-21 21:19:06 +0200
committerwout <wout@impinc.co.uk>2014-06-21 21:19:06 +0200
commit0bb294ad9189797014b1e1bf55e41ca4b1ead19e (patch)
tree4e4c5004beea90033e9fe80846c9a4c0b2b2ba30 /src/parent.js
parent629a01b3bbf057eae7e0599433bbbcb28acd8587 (diff)
downloadsvg.js-0bb294ad9189797014b1e1bf55e41ca4b1ead19e.tar.gz
svg.js-0bb294ad9189797014b1e1bf55e41ca4b1ead19e.zip
Back on track with the specs
Diffstat (limited to 'src/parent.js')
-rwxr-xr-xsrc/parent.js5
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
}