completed default value depends on verb

pull/6/head
Svein-Tore Griff With 2015-11-01 00:19:56 +01:00
parent e7fe53c235
commit cc6521c4a1
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ H5P.XAPIEvent.prototype.setScoredResult = function (score, maxScore, instance, c
}
if (typeof completion === 'undefined') {
this.data.statement.result.completion = true;
this.data.statement.result.completion = (this.getVerb() === 'completed' || this.getVerb() === 'answered');
}
else {
this.data.statement.result.completion = completion;