Skip to content

Commit 0cf93f8

Browse files
committed
use Plots.previousPromises in lsInner
... to make `lsInner` more similar with other async subroutines. This patch has no effect on the behavior.
1 parent e907b9f commit 0cf93f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plot_api/subroutines.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function lsInner(gd) {
7272
// can still get here because it makes some of the SVG structure
7373
// for shared features like selections.
7474
if(!fullLayout._has('cartesian')) {
75-
return gd._promises.length && Promise.all(gd._promises);
75+
return Plots.previousPromises(gd);
7676
}
7777

7878
function getLinePosition(ax, counterAx, side) {
@@ -347,7 +347,7 @@ function lsInner(gd) {
347347

348348
Axes.makeClipPaths(gd);
349349

350-
return gd._promises.length && Promise.all(gd._promises);
350+
return Plots.previousPromises(gd);
351351
}
352352

353353
function shouldShowLinesOrTicks(ax, subplot) {

0 commit comments

Comments
 (0)