Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 2c4c8bc

Browse files
committed
bug fix: timed version constructors need useRunestoneServices options in opts.
1 parent 43d04c2 commit 2c4c8bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

runestone/assess/js/timed.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,16 @@ Timed.prototype.createRenderedQuestionArray = function () {
259259
// Also adds them to this.renderedQuestionArray
260260
for (var i = 0; i < this.newChildren.length; i++) {
261261
var tmpChild = this.newChildren[i];
262+
opts = {'orig':tmpChild, 'useRunestoneServices':eBookConfig.useRunestoneServices}
262263
if ($(tmpChild).is("[data-component=multiplechoice]")) {
263-
this.renderedQuestionArray.push(new TimedMC({"orig": tmpChild}));
264+
this.renderedQuestionArray.push(new TimedMC(opts));
264265
} else if ($(tmpChild).is("[data-component=fillintheblank]")) {
265-
var newFITB = new TimedFITB({"orig": tmpChild});
266+
var newFITB = new TimedFITB(opts);
266267
this.renderedQuestionArray.push(newFITB);
267268
} else if ($(tmpChild).is("[data-component=dragndrop]")) {
268-
this.renderedQuestionArray.push(new TimedDragNDrop({"orig": tmpChild}));
269+
this.renderedQuestionArray.push(new TimedDragNDrop(opts));
269270
} else if ($(tmpChild).is("[data-component=clickablearea]")) {
270-
this.renderedQuestionArray.push(new TimedClickableArea({"orig":tmpChild}));
271+
this.renderedQuestionArray.push(new TimedClickableArea(opts));
271272
}
272273
}
273274
if (this.random) {

0 commit comments

Comments
 (0)