Rename the external api

d6
Svein-Tore Griff With 2015-02-17 10:57:21 +01:00
parent 537c62ab33
commit 0a6dd4808b
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
var H5P = H5P || {};
// Create object where external code may register and listen for H5P Events
H5P.xAPIExternal = new H5P.EventDispatcher();
H5P.externalDispatcher = new H5P.EventDispatcher();
// EventDispatcher extensions

View File

@ -129,7 +129,7 @@ H5P.init = function () {
}
H5P.on(instance, 'xAPI', H5P.xAPICompletedListener);
H5P.on(instance, 'xAPI', H5P.xAPIExternal.trigger);
H5P.on(instance, 'xAPI', H5P.externalDispatcher.trigger);
// Resize everything when window is resized.
$window.resize(function () {