Merge branch 'release' into event-logging
commit
6580508b1d
|
@ -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