Tweaking how title elements are created for tooltips

Using Snap().el was leading to several <svg> elements being created on
the page
This commit is contained in:
Jeff Avallone 2016-07-31 11:44:33 -04:00
parent 7f6980541c
commit 7e914a5d1e

View File

@ -61,7 +61,7 @@ export default {
.addClass('repeat-label');
if (tooltipStr) {
tooltip = Snap().el('title')
tooltip = this.container.el('title')
.append(this.container.text(0, 0, tooltipStr));
label.append(tooltip);
}