Skip to content

Commit 6064e5a

Browse files
committed
Rename redraw function and remove export
1 parent b41678c commit 6064e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/plots.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ plots.autoMargin = function(gd, id, o) {
19551955
}
19561956
};
19571957

1958-
plots.redrawWithShift = function(gd) {
1958+
function needsRedrawForShift(gd) {
19591959
if('_redrawFromAutoMarginCount' in gd._fullLayout) {
19601960
return false;
19611961
}
@@ -2088,7 +2088,7 @@ plots.doAutoMargin = function(gd) {
20882088
gs.h = Math.round(height) - gs.t - gs.b;
20892089

20902090
// if things changed and we're not already redrawing, trigger a redraw
2091-
if(!fullLayout._replotting && (plots.didMarginChange(oldMargins, gs) || plots.redrawWithShift(gd))) {
2091+
if(!fullLayout._replotting && (plots.didMarginChange(oldMargins, gs) || needsRedrawForShift(gd))) {
20922092
if('_redrawFromAutoMarginCount' in fullLayout) {
20932093
fullLayout._redrawFromAutoMarginCount++;
20942094
} else {

0 commit comments

Comments
 (0)