diff options
Diffstat (limited to 'src/svg.js')
-rw-r--r-- | src/svg.js | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |