Shorter function names

pull/1/head
falcon 2014-10-26 22:14:26 +01:00
parent f491786c47
commit e2efc849c9
1 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ H5P.QuestionSet = function (options, contentId) {
// Trigger resize on question in case the size of the QS has changed.
var instance = questionInstances[questionNumber];
if (instance.$ !== undefined) {
instance.triggerH5PEvent('resize');
instance.trigger('resize');
}
// Update progress indicator
@ -201,7 +201,7 @@ H5P.QuestionSet = function (options, contentId) {
passed: success
};
var displayResults = function () {
self.triggerH5PxAPIEvent('completed', H5P.getxAPIScoredResult(getScore(), totalScore()));
self.triggerXAPI('completed', {result: H5P.getxAPIScoredResult(getScore(), totalScore())});
if (!params.endGame.showResultPage) {
$(returnObject).trigger('h5pQuestionSetFinished', eventData);
@ -342,7 +342,7 @@ H5P.QuestionSet = function (options, contentId) {
showSolutions();
}
this.triggerH5PEvent('resize');
this.trigger('resize');
return this;
};