From 83a077be158f2d39c770cc644433c40fe0dbc868 Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Thu, 12 Feb 2015 15:46:25 +0100 Subject: [PATCH] Rename api function --- js/x-api.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/x-api.js b/js/x-api.js index f93eab3..e94adf4 100644 --- a/js/x-api.js +++ b/js/x-api.js @@ -62,9 +62,12 @@ H5P.XAPIEvent.prototype.setVerb = function(verb) { // Else: Fail silently... }; -H5P.XAPIEvent.prototype.getShortVerb = function() { +H5P.XAPIEvent.prototype.getVerb = function(full) { var statement = this.data.statement; if ('verb' in statement) { + if (full === true) { + return statement.verb; + } return statement.verb.id.slice(31); } else {