ActionMenuCtrl.toggle returns void
parent
653d453a5e
commit
95ead27316
|
@ -152,9 +152,11 @@ function studyButton(ctrl: AnalyseCtrl) {
|
|||
);
|
||||
}
|
||||
|
||||
export class Ctrl {
|
||||
export class ActionMenuCtrl {
|
||||
open: boolean = false;
|
||||
toggle = () => (this.open = !this.open);
|
||||
toggle = (): void => {
|
||||
this.open = !this.open;
|
||||
};
|
||||
}
|
||||
|
||||
export function view(ctrl: AnalyseCtrl): VNode {
|
||||
|
|
|
@ -17,7 +17,7 @@ import { Autoplay, AutoplayDelay } from './autoplay';
|
|||
import { build as makeTree, path as treePath, ops as treeOps, TreeWrapper } from 'tree';
|
||||
import { compute as computeAutoShapes } from './autoShape';
|
||||
import { Config as ChessgroundConfig } from 'chessground/config';
|
||||
import { Ctrl as ActionMenuCtrl } from './actionMenu';
|
||||
import { ActionMenuCtrl } from './actionMenu';
|
||||
import { ctrl as cevalCtrl, isEvalBetter, sanIrreversible, CevalCtrl, Work as CevalWork, CevalOpts } from 'ceval';
|
||||
import { ctrl as treeViewCtrl, TreeView } from './treeView/treeView';
|
||||
import { defined, prop, Prop } from 'common';
|
||||
|
|
Loading…
Reference in New Issue