summaryrefslogtreecommitdiffstats
path: root/rules.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 09:56:03 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 09:56:03 -0500
commitfc3f9feeddd755d357fa76a28ce5d4a327e0c2e1 (patch)
tree2b26bac2e67711406192612df6596cd8841ba90a /rules.mjs
parent335ef36746c30d80f2b979050bfd40a70d4be44b (diff)
downloadmolsim2-fc3f9feeddd755d357fa76a28ce5d4a327e0c2e1.tar.gz
molsim2-fc3f9feeddd755d357fa76a28ce5d4a327e0c2e1.zip
Get nucleotide selection working again.
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) {