Rename api function

namespaces
Svein-Tore Griff With 2015-02-12 15:46:25 +01:00
parent 36b1fd2d8c
commit 83a077be15
1 changed files with 4 additions and 1 deletions

View File

@ -62,9 +62,12 @@ H5P.XAPIEvent.prototype.setVerb = function(verb) {
// Else: Fail silently... // Else: Fail silently...
}; };
H5P.XAPIEvent.prototype.getShortVerb = function() { H5P.XAPIEvent.prototype.getVerb = function(full) {
var statement = this.data.statement; var statement = this.data.statement;
if ('verb' in statement) { if ('verb' in statement) {
if (full === true) {
return statement.verb;
}
return statement.verb.id.slice(31); return statement.verb.id.slice(31);
} }
else { else {