summaryrefslogtreecommitdiffstats
path: root/src/svg.js
blob: fd5f967fc5078ca27f015af407648e1adbe8ea81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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];
  }
  
};