Context bug fix

semantics-font
Svein-Tore Griff With 2015-03-22 20:38:17 +01:00
parent 5d6d22a13f
commit d3453b8637
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ H5P.XAPIEvent.prototype.setObject = function(instance) {
* @param {object} instance - the H5P instance
*/
H5P.XAPIEvent.prototype.setContext = function(instance) {
if (instance.parent && instance.parent.contentId || instance.parent.uuid) {
if (instance.parent && (instance.parent.contentId || instance.parent.uuid)) {
var parentId = instance.parent.uuid === undefined ? instance.parent.contentId : instance.parent.uuid;
this.data.statement.context = {
"contextActivities": {