Merge branch 'master' of github.com:h5p/h5p-question-set

pull/4/head^2
Paal Joergensen 2016-10-21 14:22:34 +02:00
commit 9e891a0840
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,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);