parent
fa4b6ab524
commit
dc8b70748f
|
@ -139,8 +139,8 @@ H5P.EventDispatcher = (function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
var once = function (event) {
|
var once = function (event) {
|
||||||
self.off(event, once);
|
self.off(event.type, once);
|
||||||
listener.apply(this, event);
|
listener.call(this, event);
|
||||||
};
|
};
|
||||||
|
|
||||||
self.on(type, once, thisArg);
|
self.on(type, once, thisArg);
|
||||||
|
|
Loading…
Reference in New Issue