@@ -402,13 +402,13 @@ export class Menu {
402402 this . variable < boolean > ( 'semantics' ) ,
403403 this . variable < string > ( 'zoom' ) ,
404404 this . variable < string > ( 'zscale' ) ,
405- this . variable < string > ( 'renderer' , ( jax ) => this . setRenderer ( jax ) ) ,
405+ this . variable < string > ( 'renderer' , jax => this . setRenderer ( jax ) ) ,
406406 this . variable < boolean > ( 'alt' ) ,
407407 this . variable < boolean > ( 'cmd' ) ,
408408 this . variable < boolean > ( 'ctrl' ) ,
409409 this . variable < boolean > ( 'shift' ) ,
410- this . variable < string > ( 'scale' , ( scale ) => this . setScale ( scale ) ) ,
411- this . variable < boolean > ( 'explorer' , ( explore ) => this . setExplorer ( explore ) ) ,
410+ this . variable < string > ( 'scale' , scale => this . setScale ( scale ) ) ,
411+ this . variable < boolean > ( 'explorer' , explore => this . setExplorer ( explore ) ) ,
412412 this . a11yVar < string > ( 'highlight' ) ,
413413 this . a11yVar < string > ( 'backgroundColor' ) ,
414414 this . a11yVar < string > ( 'backgroundOpacity' ) ,
@@ -418,8 +418,8 @@ export class Menu {
418418 this . a11yVar < boolean > ( 'subtitles' ) ,
419419 this . a11yVar < boolean > ( 'braille' ) ,
420420 this . a11yVar < boolean > ( 'viewBraille' ) ,
421- this . a11yVar < string > ( 'locale' , ( value ) => SRE . setupEngine ( { locale : value as string } ) ) ,
422- this . a11yVar < string > ( 'speechRules' , ( value ) => {
421+ this . a11yVar < string > ( 'locale' , value => SRE . setupEngine ( { locale : value as string } ) ) ,
422+ this . a11yVar < string > ( 'speechRules' , value => {
423423 const [ domain , style ] = value . split ( '-' ) ;
424424 this . document . options . sre . domain = domain ;
425425 this . document . options . sre . style = style ;
@@ -431,9 +431,9 @@ export class Menu {
431431 this . a11yVar < boolean > ( 'infoRole' ) ,
432432 this . a11yVar < boolean > ( 'infoPrefix' ) ,
433433 this . variable < boolean > ( 'autocollapse' ) ,
434- this . variable < boolean > ( 'collapsible' , ( collapse ) => this . setCollapsible ( collapse ) ) ,
435- this . variable < boolean > ( 'inTabOrder' , ( tab ) => this . setTabOrder ( tab ) ) ,
436- this . variable < boolean > ( 'assistiveMml' , ( mml ) => this . setAssistiveMml ( mml ) )
434+ this . variable < boolean > ( 'collapsible' , collapse => this . setCollapsible ( collapse ) ) ,
435+ this . variable < boolean > ( 'inTabOrder' , tab => this . setTabOrder ( tab ) ) ,
436+ this . variable < boolean > ( 'assistiveMml' , mml => this . setAssistiveMml ( mml ) )
437437 ] ,
438438 items : [
439439 this . submenu ( 'Show' , 'Show Math As' , [
@@ -1006,8 +1006,8 @@ export class Menu {
10061006 const element = math . typesetRoot ;
10071007 element . addEventListener ( 'contextmenu' , ( ) => this . menu . mathItem = math , true ) ;
10081008 element . addEventListener ( 'keydown' , ( ) => this . menu . mathItem = math , true ) ;
1009- element . addEventListener ( 'click' , ( event : MouseEvent ) => this . zoom ( event , 'Click' , math ) , true ) ;
1010- element . addEventListener ( 'dblclick' , ( event : MouseEvent ) => this . zoom ( event , 'DoubleClick' , math ) , true ) ;
1009+ element . addEventListener ( 'click' , event => this . zoom ( event , 'Click' , math ) , true ) ;
1010+ element . addEventListener ( 'dblclick' , event => this . zoom ( event , 'DoubleClick' , math ) , true ) ;
10111011 this . menu . store . insert ( element ) ;
10121012 }
10131013
0 commit comments