summaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/svg.js b/src/svg.js
index ebb0f87..b042f12 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -1,9 +1,13 @@
this.SVG = {
- namespace: "http://www.w3.org/2000/svg",
- xlink: "http://www.w3.org/1999/xlink",
+ ns: 'http://www.w3.org/2000/svg',
+ xlink: 'http://www.w3.org/1999/xlink',
- createElement: function(e) {
- return document.createElementNS(this.namespace, e);
+ create: function(e) {
+ return document.createElementNS(this.ns, e);
}
+};
+
+this.svg = function(e) {
+ return new SVG.Document(e);
}; \ No newline at end of file