Skip to content

Commit 68993c3

Browse files
committed
minor 🌴 for findMainSubplot
1 parent da30f16 commit 68993c3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/plots/plots.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -873,13 +873,11 @@ plots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLa
873873
// (on which the ticks & labels are drawn)
874874
for(i = 0; i < axList.length; i++) {
875875
ax = axList[i];
876-
ax._mainSubplot = findMainSubplot(ax, newFullLayout);
876+
ax._mainSubplot = findMainSubplot(ax, newFullLayout, ids);
877877
}
878878
};
879879

880-
function findMainSubplot(ax, fullLayout) {
881-
var subplotList = fullLayout._subplots;
882-
var ids = subplotList.cartesian.concat(subplotList.gl2d || []);
880+
function findMainSubplot(ax, fullLayout, ids) {
883881
var mockGd = {_fullLayout: fullLayout};
884882

885883
var isX = ax._id.charAt(0) === 'x';

0 commit comments

Comments
 (0)