summaryrefslogtreecommitdiffstats
path: root/rules.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'rules.mjs')
-rw-r--r--rules.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.mjs b/rules.mjs
index f726a5a..8f038bc 100644
--- a/rules.mjs
+++ b/rules.mjs
@@ -77,14 +77,14 @@ class NucleotideSelect {
this.rules.instructions.querySelector('#select-number').innerHTML =
`${this.want}<sup>${ordinalSuffix(this.want)}</sup>`
- this.rules.currentGenome.onSelectionChanged =
+ this.rules.currentGenome.onNucleotideSelectionChanged =
this.handleSelectionChanged.bind(this)
this.rules.currentGenome.unlock()
}
exit() {
this.rules.currentGenome.lock()
- this.rules.currentGenome.onSelectionChanged = undefined;
+ this.rules.currentGenome.onNucleotideSelectionChanged = undefined;
}
handleSelectionChanged(nucleotide, i) {