git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbf129
)
word/multichoice: stop when answers run out
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 30 Dec 2021 07:04:53 +0000
(08:04 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 31 Dec 2021 04:29:05 +0000
(
05:29
+0100)
word/multichoice.js
patch
|
blob
|
history
diff --git
a/word/multichoice.js
b/word/multichoice.js
index 61a7b5adbb7950d4c4bbb0161cb27c3dcdb23f13..5908fdcbec9f3a2a69967bf1d9111bb4e98e193e 100644
(file)
--- a/
word/multichoice.js
+++ b/
word/multichoice.js
@@
-1,5
+1,6
@@
class WordMultiChoice extends WordQuiz {
next() {
+ if (this.words.length < 4) return;
let word = this.words.shift();
if (!word[2]) return this.next();
let form = put(this.form,