From eb6ec29cb635278cdbafea885f6a86fe8028128d Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Tue, 12 May 2015 16:09:36 +0200 Subject: [PATCH] Remove deprecated name --- js/h5p-x-api-event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/h5p-x-api-event.js b/js/h5p-x-api-event.js index c28b4d3..a973dee 100644 --- a/js/h5p-x-api-event.js +++ b/js/h5p-x-api-event.js @@ -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() }; } }