From d6db07481e152559a35554df8a71b905ca444e84 Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Wed, 18 Feb 2015 09:07:57 +0100 Subject: [PATCH] Make sure the contentId is set on content types --- js/h5p.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/h5p.js b/js/h5p.js index dd948b5..84a2921 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -391,6 +391,10 @@ H5P.newRunnable = function (library, contentId, $attachTo, skipResize) { if (instance.$ === undefined) { instance.$ = H5P.jQuery(instance); } + + if (instance.contentId === undefined) { + instance.conentId = contentId; + } // Make xAPI events bubble // if (parent !== null && parent.trigger !== undefined) {