Skip to content

Commit 7b22175

Browse files
committed
revise axId scope
1 parent 999f877 commit 7b22175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plot_api/plot_api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ function _relayout(gd, aobj) {
20712071
// we're editing the (auto)range of, so we can tell the others constrained
20722072
// to scale with them that it's OK for them to shrink
20732073
var rangesAltered = {};
2074-
var axId, ax;
2074+
var ax;
20752075

20762076
function recordAlteredAxis(pleafPlus) {
20772077
var axId = Axes.name2id(pleafPlus.split('.')[0]);
@@ -2299,7 +2299,7 @@ function _relayout(gd, aobj) {
22992299
}
23002300

23012301
// figure out if we need to recalculate axis constraints
2302-
for(axId in rangesAltered) {
2302+
for(var axId in rangesAltered) {
23032303
ax = Axes.getFromId(gd, axId);
23042304
var group = ax && ax._constraintGroup;
23052305
if(group) {

0 commit comments

Comments
 (0)