aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
blob: f33f9e734d77a80116ba502b1c27b6649cdae07a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
this.SVG = {
  ns:     'http://www.w3.org/2000/svg',
  xlink:  'http://www.w3.org/1999/xlink',
  
  create: function(e) {
    return document.createElementNS(this.ns, e);
  },
  
  extend: function(o, m) {
    for (var k in m)
      o.prototype[k] = m[k];
  }
};

this.svg = function(e) {
  return new SVG.Doc(e);
};