Rename api function
parent
36b1fd2d8c
commit
83a077be15
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue