@@ -1279,15 +1279,6 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
12791279 'error_y.width' , 'error_x.width' , 'error_x.copy_ystyle' ,
12801280 'marker.maxdisplayed'
12811281 ] ;
1282- // these ones show up in restyle because they make more sense
1283- // in the style box, but they're graph-wide attributes, so set
1284- // in gd.layout also axis scales and range show up here because
1285- // we may need to undo them. These all trigger a recalc
1286- // var layoutAttrs = [
1287- // 'barmode', 'barnorm','bargap', 'bargroupgap',
1288- // 'boxmode', 'boxgap', 'boxgroupgap',
1289- // '?axis.autorange', '?axis.range', '?axis.rangemode'
1290- // ];
12911282
12921283 // these ones may alter the axis type
12931284 // (at least if the first trace is involved)
@@ -1299,7 +1290,6 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
12991290 var docalc = false ,
13001291 docalcAutorange = false ,
13011292 doplot = false ,
1302- dolayout = false ,
13031293 dostyle = false ,
13041294 docolorbars = false ;
13051295 // copies of the change (and previous values of anything affected)
@@ -1627,12 +1617,6 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
16271617 // now update the graphics
16281618 // a complete layout redraw takes care of plot and
16291619 var seq ;
1630- if ( dolayout ) {
1631- seq = [ function changeLayout ( ) {
1632- var copyLayout = gd . layout ;
1633- gd . layout = undefined ;
1634- return Plotly . plot ( gd , '' , copyLayout ) ;
1635- } ] ;
16361620 }
16371621 else if ( docalc || doplot || docalcAutorange ) {
16381622 seq = [ Plotly . plot ] ;
0 commit comments