Skip to content

Commit f8a78a2

Browse files
committed
Remove unused code in legend interactions
1 parent c729353 commit f8a78a2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/legend/draw.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -618,12 +618,8 @@ function handleClick(g, gd, numClicks) {
618618
} else if(numClicks === 2) {
619619
// Compute the clicked index. expandedIndex does what we want for expanded traces
620620
// but also culls hidden traces. That means we have some work to do.
621-
var clickedIndex, isIsolated, isClicked, isInGroup, otherState;
622-
for(clickedIndex = 0; clickedIndex < fullData.length; clickedIndex++) {
623-
if(fullData[clickedIndex] === fullTrace) break;
624-
}
625-
626-
isIsolated = true;
621+
var isClicked, isInGroup, otherState;
622+
var isIsolated = true;
627623
for(i = 0; i < fullData.length; i++) {
628624
isClicked = fullData[i] === fullTrace;
629625
if(isClicked) continue;

0 commit comments

Comments
 (0)