From 3ab3eea1c8565bd4791ac3a652398980d9dc2d78 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Wed, 5 Jan 2022 11:41:50 +0100 Subject: [PATCH] Fix making resetTask a public function This is done so that e.g. Interactive Book (Column) can reset the task. --- js/questionset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index ce859a0..30d92fe 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -496,7 +496,7 @@ H5P.QuestionSet = function (options, contentId, contentData) { * Used for contracts with integrated content. * @public */ - var resetTask = function () { + this.resetTask = function () { // Clear previous state to ensure questions are created cleanly contentData.previousState = [];