diff options
author | wout <wout@impinc.co.uk> | 2012-12-29 18:12:53 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-29 18:12:53 +0100 |
commit | 68367e494fcab754ae4833e64804a824032cf31c (patch) | |
tree | c9d5d9fe5995ccbbe819f29752c1133c7415882d /src/svg.js | |
parent | 52ed3ba98715ed3c63e74ff29a9892972a7bec19 (diff) | |
download | svg.js-68367e494fcab754ae4833e64804a824032cf31c.tar.gz svg.js-68367e494fcab754ae4833e64804a824032cf31c.zip |
Code refactoring
Diffstat (limited to 'src/svg.js')
-rw-r--r-- | src/svg.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,12 +1,15 @@ this.SVG = { + // define default namespaces ns: 'http://www.w3.org/2000/svg', xlink: 'http://www.w3.org/1999/xlink', + // method for element creation create: function(e) { return document.createElementNS(this.ns, e); }, + // method for extending objects extend: function(o, m) { for (var k in m) o.prototype[k] = m[k]; |