Merge branch 'release' into event-logging

pull/17/head
Frode Petterson 2016-02-09 13:53:41 +01:00
commit 6580508b1d
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);