Skip to content

Commit 94b940d

Browse files
committed
rename anchor -> anchor3 so that it doesn't conflict w/ for-loop block
1 parent 981b1a1 commit 94b940d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/annotations/draw.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ function drawRaw(gd, options, index, xa, ya) {
207207

208208
function drawGraphicalElements() {
209209
// if the text has *only* a link, make the whole box into a link
210-
var anchor = annText.selectAll('a');
211-
if(anchor.size() === 1 && anchor.text() === annText.text()) {
210+
var anchor3 = annText.selectAll('a');
211+
if(anchor3.size() === 1 && anchor3.text() === annText.text()) {
212212
var wholeLink = annTextGroupInner.insert('a', ':first-child').attr({
213-
'xlink:xlink:href': anchor.attr('xlink:href'),
214-
'xlink:xlink:show': anchor.attr('xlink:show')
213+
'xlink:xlink:href': anchor3.attr('xlink:href'),
214+
'xlink:xlink:show': anchor3.attr('xlink:show')
215215
})
216216
.style({cursor: 'pointer'});
217217

0 commit comments

Comments
 (0)