Update retrieval of previous content

pull/4/head^2
Timothy Lim 2016-10-18 15:32:16 +02:00
parent 96218e2a9b
commit 207914b411
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
var hasAnswers = contentData.previousState && contentData.previousState.answers; var hasAnswers = contentData.previousState && contentData.previousState.answers;
var questionInstance = H5P.newRunnable(question, contentId, undefined, undefined, var questionInstance = H5P.newRunnable(question, contentId, undefined, undefined,
{ {
previousState: hasAnswers ? contentData.previousState.answers[questionOrder[i]] : undefined, previousState: hasAnswers ? contentData.previousState.answers[i] : undefined,
parent: self parent: self
}); });
questionInstance.on('resize', function () { questionInstance.on('resize', function () {