aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.js')
-rwxr-xr-xsrc/doc.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/doc.js b/src/doc.js
index a10bffe..820a8cd 100755
--- a/src/doc.js
+++ b/src/doc.js
@@ -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;
+ }
}
})