Rename the external api
parent
537c62ab33
commit
0a6dd4808b
|
@ -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
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue