From 7e914a5d1e5ca90048faedeab6b80873c3cbb4ec Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 31 Jul 2016 11:44:33 -0400 Subject: [PATCH] Tweaking how title elements are created for tooltips Using Snap().el was leading to several elements being created on the page --- src/js/parser/javascript/match_fragment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/parser/javascript/match_fragment.js b/src/js/parser/javascript/match_fragment.js index cf38152..4464e3e 100644 --- a/src/js/parser/javascript/match_fragment.js +++ b/src/js/parser/javascript/match_fragment.js @@ -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); }