Skip to content

Commit 764cf7c

Browse files
committed
fix ExamDisplay.advance and reverse
1 parent 59902e6 commit 764cf7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

themes/default/files/scripts/exam-display.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Numbas.queueScript('exam-display', ['display-util', 'display-base', 'math', 'uti
158158
* @member {observable|boolean} reverse
159159
* @memberof Numbas.display.ExamDisplay
160160
*/
161-
this.reverse = function() {
161+
this.reverse = () => {
162162
if(this.viewType() == 'question') {
163163
if(this.currentQuestionNumber() == 0) {
164164
this.showInfoPage('introduction');
@@ -173,7 +173,7 @@ Numbas.queueScript('exam-display', ['display-util', 'display-base', 'math', 'uti
173173
* @member {observable|boolean} advance
174174
* @memberof Numbas.display.ExamDisplay
175175
*/
176-
this.advance = function() {
176+
this.advance = () => {
177177
if(this.viewType() == 'question') {
178178
Numbas.controls.nextQuestion(this.exam);
179179
} else {

0 commit comments

Comments
 (0)