diff options
Diffstat (limited to 'public/bower_components/jvectormap/src/svg-text-element.js')
-rw-r--r-- | public/bower_components/jvectormap/src/svg-text-element.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/public/bower_components/jvectormap/src/svg-text-element.js b/public/bower_components/jvectormap/src/svg-text-element.js new file mode 100644 index 0000000..3eafdc3 --- /dev/null +++ b/public/bower_components/jvectormap/src/svg-text-element.js @@ -0,0 +1,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); + } +};
\ No newline at end of file |