Merge branch 'stable'

pull/6/head
Svein-Tore Griff With 2015-11-01 00:32:47 +01:00
commit b077af0981
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ H5P.EventDispatcher.prototype.setActivityStarted = function() {
* @param {H5P.XAPIEvent} event * @param {H5P.XAPIEvent} event
*/ */
H5P.xAPICompletedListener = function (event) { H5P.xAPICompletedListener = function (event) {
if (event.getVerb() === 'completed' && !event.getVerifiedStatementValue(['context', 'contextActivities', 'parent'])) { if ((event.getVerb() === 'completed' || event.getVerb() === 'answered') && !event.getVerifiedStatementValue(['context', 'contextActivities', 'parent'])) {
var score = event.getScore(); var score = event.getScore();
var maxScore = event.getMaxScore(); var maxScore = event.getMaxScore();
var contentId = event.getVerifiedStatementValue(['object', 'definition', 'extensions', 'http://h5p.org/x-api/h5p-local-content-id']); var contentId = event.getVerifiedStatementValue(['object', 'definition', 'extensions', 'http://h5p.org/x-api/h5p-local-content-id']);