diff options
Diffstat (limited to 'src/doc.js')
-rwxr-xr-x | src/doc.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -78,6 +78,14 @@ SVG.Doc = SVG.invent({ return this } + + // Removes the doc from the DOM + , destroy: function() { + this.parent.removeChild(this.node); + this.parent = null; + + return this; + } } }) |