diff options
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; + } } }) |