From e3de83e22d21536026b8f2eb4708a1226e8c5c3f Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Sat, 28 Dec 2024 21:02:52 -0800 Subject: [PATCH] Fix a spelling mistake and update a comment. --- ui/analyse/src/study/studyCtrl.ts | 8 ++++---- ui/game/src/view/status.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/analyse/src/study/studyCtrl.ts b/ui/analyse/src/study/studyCtrl.ts index 7a728e42d766f..7b87fb208a0bc 100644 --- a/ui/analyse/src/study/studyCtrl.ts +++ b/ui/analyse/src/study/studyCtrl.ts @@ -251,7 +251,7 @@ export default class StudyCtrl { this.ctrl.flipped = this.chapterFlipMapProp(this.data.chapter.id); if (this.members.canContribute()) this.form.openIfNew(); - this.instanciateGamebookPlay(); + this.instantiateGamebookPlay(); window.addEventListener('popstate', () => window.location.reload()); } @@ -349,7 +349,7 @@ export default class StudyCtrl { this.configureAnalysis(); this.vm.loading = false; - this.instanciateGamebookPlay(); + this.instantiateGamebookPlay(); let nextPath: Tree.Path; @@ -399,7 +399,7 @@ export default class StudyCtrl { bottomColor = () => this.ctrl.flipped ? opposite(this.data.chapter.setup.orientation) : this.data.chapter.setup.orientation; - instanciateGamebookPlay = () => { + instantiateGamebookPlay = () => { if (!this.isGamebookPlay()) return (this.gamebookPlay = undefined); // ensure all original nodes have a gamebook entry, // so we can differentiate original nodes from user-made ones @@ -587,7 +587,7 @@ export default class StudyCtrl { }; setGamebookOverride = (o: GamebookOverride) => { this.vm.gamebookOverride = o; - this.instanciateGamebookPlay(); + this.instantiateGamebookPlay(); this.configureAnalysis(); this.ctrl.userJump(this.ctrl.path); if (!o) this.xhrReload(); diff --git a/ui/game/src/view/status.ts b/ui/game/src/view/status.ts index 384e4ad16e5a0..1e628613a8804 100644 --- a/ui/game/src/view/status.ts +++ b/ui/game/src/view/status.ts @@ -19,7 +19,7 @@ export function expandFen(fullFen: FEN): string { } export function insufficientMaterial(variant: VariantKey, fullFen: FEN): boolean { - // TODO: atomic and antichess + // TODO: atomic, antichess, threeCheck if ( variant === 'horde' || variant === 'kingOfTheHill' ||