Remove deprecated name

redesign-copyrights
Svein-Tore Griff With 2015-05-12 16:09:36 +02:00
parent ca0c848e0f
commit eb6ec29cb6
1 changed files with 2 additions and 2 deletions

View File

@ -95,9 +95,9 @@ H5P.XAPIEvent.prototype.setObject = function (instance) {
if (instance.subContentId) {
this.data.statement.object.definition.extensions['http://h5p.org/x-api/h5p-subContentId'] = instance.subContentId;
// Don't set titles on main content, title should come from publishing platform
if (typeof instance.getH5PTitle === 'function') {
if (typeof instance.getTitle === 'function') {
this.data.statement.object.definition.name = {
"en-US": instance.getH5PTitle()
"en-US": instance.getTitle()
};
}
}