@@ -288,7 +288,7 @@ export class RadioButtonsModel extends SelectionModel {
288288 tooltips : [ ] ,
289289 icons : [ ] ,
290290 button_style : '' ,
291- orientation :'vertical' ,
291+ orientation : 'vertical' ,
292292 } ;
293293 }
294294}
@@ -306,24 +306,24 @@ export class RadioButtonsView extends DescriptionView {
306306 this . el . appendChild ( this . container ) ;
307307 this . container . classList . add ( 'widget-radio-box' ) ;
308308
309- this . update ( ) ;
309+ this . update ( ) ;
310310 }
311311
312312 /**
313313 * Update the contents of this view
314314 *
315- * Called when the model is changed. The model may have been
316- * changed by another view or by a state update from the back-end.
315+ * Called when the model is changed. The model may have been
316+ * changed by another view or by a state update from the back-end.
317317 */
318- update ( options ?: any ) : void {
319- if ( this . model . get ( 'orientation' ) === 'vertical' ) {
320- this . container . classList . remove ( 'widget-radio-box-horizontal' ) ;
321- this . container . classList . add ( 'widget-radio-box-vertical' ) ;
322- } else {
323- this . container . classList . remove ( 'widget-radio-box-vertical' ) ;
324- this . container . classList . add ( 'widget-radio-box-horizontal' ) ;
325- }
326- const items : string [ ] = this . model . get ( '_options_labels' ) ;
318+ update ( options ?: any ) : void {
319+ if ( this . model . get ( 'orientation' ) === 'vertical' ) {
320+ this . container . classList . remove ( 'widget-radio-box-horizontal' ) ;
321+ this . container . classList . add ( 'widget-radio-box-vertical' ) ;
322+ } else {
323+ this . container . classList . remove ( 'widget-radio-box-vertical' ) ;
324+ this . container . classList . add ( 'widget-radio-box-horizontal' ) ;
325+ }
326+ const items : string [ ] = this . model . get ( '_options_labels' ) ;
327327 const radios = Array . from (
328328 this . container . querySelectorAll < HTMLInputElement > ( 'input[type="radio"]' )
329329 ) . map ( ( x ) => x . value ) ;
0 commit comments