xAPI Context Extensions, use object not array

HFJ-2029
pull/5/head 1.8.3
Frode Petterson 2016-06-16 10:15:06 +02:00
parent 70e35bebb7
commit 2a5f6c35aa
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ H5P.QuestionSet = function (options, contentId) {
event.setVerb('answered'); event.setVerb('answered');
} }
if (event.data.statement.context.extensions === undefined) { if (event.data.statement.context.extensions === undefined) {
event.data.statement.context.extensions = []; event.data.statement.context.extensions = {};
} }
event.data.statement.context.extensions['http://id.tincanapi.com/extension/ending-point'] = currentQuestion + 1; event.data.statement.context.extensions['http://id.tincanapi.com/extension/ending-point'] = currentQuestion + 1;
}); });