Skip to content

Commit

Permalink
use Plots.previousPromises in lsInner
Browse files Browse the repository at this point in the history
... to make `lsInner` more similar with other async subroutines.
    This patch has no effect on the behavior.
  • Loading branch information
etpinard committed Sep 4, 2019
1 parent e907b9f commit 0cf93f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plot_api/subroutines.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function lsInner(gd) {
// can still get here because it makes some of the SVG structure
// for shared features like selections.
if(!fullLayout._has('cartesian')) {
return gd._promises.length && Promise.all(gd._promises);
return Plots.previousPromises(gd);
}

function getLinePosition(ax, counterAx, side) {
Expand Down Expand Up @@ -347,7 +347,7 @@ function lsInner(gd) {

Axes.makeClipPaths(gd);

return gd._promises.length && Promise.all(gd._promises);
return Plots.previousPromises(gd);
}

function shouldShowLinesOrTicks(ax, subplot) {
Expand Down

0 comments on commit 0cf93f8

Please sign in to comment.