Fixed once()

HFJ-1646
pull/17/head
Frode Petterson 2016-02-09 13:53:17 +01:00
parent fa4b6ab524
commit dc8b70748f
1 changed files with 2 additions and 2 deletions

View File

@ -139,8 +139,8 @@ H5P.EventDispatcher = (function () {
}
var once = function (event) {
self.off(event, once);
listener.apply(this, event);
self.off(event.type, once);
listener.call(this, event);
};
self.on(type, once, thisArg);