Fix problems with the new content.json
parent
914a5ec991
commit
31f3f52567
|
@ -118,7 +118,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
for (var i=0; i<params.questions.length; i++) {
|
for (var i=0; i<params.questions.length; i++) {
|
||||||
var question = params.questions[i];
|
var question = params.questions[i];
|
||||||
// TODO: Render on init, inject in template.
|
// TODO: Render on init, inject in template.
|
||||||
var tmp = new (H5P.classFromName(question.library.library))(question.library.params, contentId);
|
var tmp = new (H5P.classFromName(question.library))(question.params, contentId);
|
||||||
questionInstances.push(tmp);
|
questionInstances.push(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue