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

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