Skip to content

Commit d8a0512

Browse files
committed
try to 🔪 (very) old sync/out-of-sync logic
1 parent 89e52f7 commit d8a0512

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/components/fx/hover.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,11 @@ function _hover(gd, evt, subplot, noHoverEvent) {
224224
for(var i = 0; i < len; i++) {
225225
var spId = subplots[i];
226226

227-
// 'cartesian' case
228-
var plotObj = plots[spId];
229-
if(plotObj) {
227+
if(plots[spId]) {
228+
// 'cartesian' case
230229
supportsCompare = true;
231-
232-
// TODO make sure that fullLayout_plots axis refs
233-
// get updated properly so that we don't have
234-
// to use Axes.getFromId in general.
235-
236-
xaArray[i] = Axes.getFromId(gd, plotObj.xaxis._id);
237-
yaArray[i] = Axes.getFromId(gd, plotObj.yaxis._id);
230+
xaArray[i] = plots[spId].xaxis;
231+
yaArray[i] = plots[spId].yaxis;
238232
} else if(fullLayout[spId] && fullLayout[spId]._subplot) {
239233
// other subplot types
240234
var _subplot = fullLayout[spId]._subplot;

0 commit comments

Comments
 (0)