Make sure the contentId is set on content types

d6
Svein-Tore Griff With 2015-02-18 09:07:57 +01:00
parent 1995da20bb
commit d6db07481e
1 changed files with 4 additions and 0 deletions

View File

@ -392,6 +392,10 @@ H5P.newRunnable = function (library, contentId, $attachTo, skipResize) {
instance.$ = H5P.jQuery(instance);
}
if (instance.contentId === undefined) {
instance.conentId = contentId;
}
// Make xAPI events bubble
// if (parent !== null && parent.trigger !== undefined) {
// instance.on('xAPI', parent.trigger);