diff options
author | wout <wout@impinc.co.uk> | 2012-12-17 16:55:16 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-17 16:55:16 +0100 |
commit | 6a013f19d6fa84e538d31bca5f1466c5f3479630 (patch) | |
tree | 3807acc4240bb1dbd5f25406b262a240351fa67a /src/svg.js | |
parent | 9ba8a780e0da4de4839df119f1d57d7f6327b1c6 (diff) | |
download | svg.js-6a013f19d6fa84e538d31bca5f1466c5f3479630.tar.gz svg.js-6a013f19d6fa84e538d31bca5f1466c5f3479630.zip |
Refactored code for readability and size
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 |