aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bower_components/jvectormap/src/svg-text-element.js
blob: 3eafdc303edfa262129d1ebf6fddb2bd8a737ffc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
jvm.SVGTextElement = function(config, style){
  jvm.SVGTextElement.parentClass.call(this, 'text', config, style);
}

jvm.inherits(jvm.SVGTextElement, jvm.SVGShapeElement);

jvm.SVGTextElement.prototype.applyAttr = function(attr, value){
  if (attr === 'text') {
    this.node.textContent = value;
  } else {
    jvm.SVGTextElement.parentClass.prototype.applyAttr.apply(this, arguments);
  }
};