Skip to content

Commit 30e3997

Browse files
committed
use idx instead of i
1 parent 81caeeb commit 30e3997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/htmlwidgets/plotly.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ HTMLWidgets.widget({
268268
} else if (Array.isArray(pt.pointNumber)) {
269269
obj[attrsToAttach[i]] = attr[pt.pointNumber[0]][pt.pointNumber[1]];
270270
} else if (Array.isArray(pt.pointNumbers)) {
271-
obj[attrsToAttach[i]] = pt.pointNumbers.map(function(i) { return attr[i]; });
271+
obj[attrsToAttach[i]] = pt.pointNumbers.map(function(idx) { return attr[idx]; });
272272
}
273273
}
274274
}

0 commit comments

Comments
 (0)