@@ -1279,15 +1279,6 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
1279
1279
'error_y.width' , 'error_x.width' , 'error_x.copy_ystyle' ,
1280
1280
'marker.maxdisplayed'
1281
1281
] ;
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
- // ];
1291
1282
1292
1283
// these ones may alter the axis type
1293
1284
// (at least if the first trace is involved)
@@ -1299,7 +1290,6 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
1299
1290
var docalc = false ,
1300
1291
docalcAutorange = false ,
1301
1292
doplot = false ,
1302
- dolayout = false ,
1303
1293
dostyle = false ,
1304
1294
docolorbars = false ;
1305
1295
// copies of the change (and previous values of anything affected)
@@ -1627,12 +1617,6 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
1627
1617
// now update the graphics
1628
1618
// a complete layout redraw takes care of plot and
1629
1619
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
- } ] ;
1636
1620
}
1637
1621
else if ( docalc || doplot || docalcAutorange ) {
1638
1622
seq = [ Plotly . plot ] ;
0 commit comments