From db888331479c356c828e20af51340cf8ed02bc4c Mon Sep 17 00:00:00 2001 From: Timothy Lim Date: Fri, 21 Oct 2016 12:56:11 +0200 Subject: [PATCH] Rename variables --- js/questionset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index cfd3bc9..0b48e44 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -157,7 +157,7 @@ H5P.QuestionSet = function (options, contentId, contentData) { var randomizeQuestionOrdering = function (questions, questionOrder) { // Save the original order of the questions in a multidimensional array [[question0,0],[question1,1]... - var questionOrdering = questions.map(function(object, index) { return [object, index] }); + var questionOrdering = questions.map(function(questionInstance, index) { return [questionInstance, index] }); // Shuffle the multidimensional array questionOrdering = H5P.shuffleArray(questionOrdering);