diff options
author | gschutz <guilherme@gschutz.com> | 2015-05-18 15:51:40 -0300 |
---|---|---|
committer | gschutz <guilherme@gschutz.com> | 2015-05-18 15:55:16 -0300 |
commit | 76a236a54c1e9b8457d9b13820fd6fa678df95dd (patch) | |
tree | ae4b22f4430661df83bd29a27098f28a9fe65caf /src/doc.js | |
parent | 54b3f3f1aab6204624189b5ef04b7ea30125a455 (diff) | |
parent | 0d1e85f6e3953461808c70366528c2ac3ce7903b (diff) | |
download | svg.js-76a236a54c1e9b8457d9b13820fd6fa678df95dd.tar.gz svg.js-76a236a54c1e9b8457d9b13820fd6fa678df95dd.zip |
Merge remote-tracking branch 'upstream/master' generate the build
Diffstat (limited to 'src/doc.js')
-rwxr-xr-x | src/doc.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -78,6 +78,16 @@ SVG.Doc = SVG.invent({ return this } + + // Removes the doc from the DOM + , remove: function() { + if(this.parent) { + this.parent.removeChild(this.node); + this.parent = null; + } + + return this; + } } }) |