Skip to content

Commit e849327

Browse files
committed
make Plotly.newPlot return a promise:
- so that Plotly.newPlot().then() works.
1 parent b2f6b22 commit e849327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ Plotly.redraw = function(gd) {
940940
Plotly.newPlot = function (gd, data, layout, config) {
941941
gd = getGraphDiv(gd);
942942
plots.purge(gd);
943-
Plotly.plot(gd, data, layout, config);
943+
return Plotly.plot(gd, data, layout, config);
944944
};
945945

946946
function doCalcdata(gd) {

0 commit comments

Comments
 (0)