Skip to content

Commit b89720b

Browse files
committed
Whoops. Undo changes from a different branch
1 parent b512566 commit b89720b

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,11 +1647,11 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
16471647
if(typeof astr === 'string') aobj[astr] = val;
16481648
else if(Plotly.Lib.isPlainObject(astr)) {
16491649
aobj = astr;
1650-
if(traces === undefined) traces = val; // the 3-arg form
1650+
if(traces===undefined) traces = val; // the 3-arg form
16511651
}
16521652
else {
16531653
console.log('restyle fail',astr,val,traces);
1654-
return Promise.reject();
1654+
return new Promise.reject();
16551655
}
16561656

16571657
if(Object.keys(aobj).length) gd.changed = true;
@@ -2173,7 +2173,7 @@ Plotly.relayout = function relayout(gd, astr, val) {
21732173
gd = getGraphDiv(gd);
21742174

21752175
if(gd.framework && gd.framework.isPolar) {
2176-
return Promise.resolve(gd);
2176+
return new Promise.resolve(gd);
21772177
}
21782178

21792179
var layout = gd.layout,

src/plots/plots.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,6 @@ plots.supplyDefaults = function(gd) {
426426
trace = newData[i];
427427

428428
fullTrace = plots.supplyDataDefaults(trace, i, newFullLayout);
429-
430-
// If autobinned before, autobin again. supplyDataDefaults sees
431-
// the generated bin object and assumes it has been set manually
432-
// so we need to override that behaviour.
433-
if (oldFullData[i]){
434-
fullTrace.autobinx = oldFullData[i].autobinx || fullTrace.autobinx;
435-
fullTrace.autobiny = oldFullData[i].autobiny || fullTrace.autobiny;
436-
}
437-
438429
newFullData.push(fullTrace);
439430

440431
// DETECT 3D, Cartesian, and Polar

0 commit comments

Comments
 (0)