From 207914b411af635701e9d3213836a5a5bcadcdac Mon Sep 17 00:00:00 2001 From: Timothy Lim Date: Tue, 18 Oct 2016 15:32:16 +0200 Subject: [PATCH] Update retrieval of previous content --- js/questionset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index b0be1d5..21c9a97 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -187,7 +187,7 @@ H5P.QuestionSet = function (options, contentId, contentData) { var hasAnswers = contentData.previousState && contentData.previousState.answers; 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 }); questionInstance.on('resize', function () {