Fixed wrong args.
parent
2bba9a183b
commit
acb36845c0
|
@ -112,14 +112,13 @@ H5P.EventDispatcher = (function () {
|
||||||
* @param {String} type Event type
|
* @param {String} type Event type
|
||||||
* @param {...*} args
|
* @param {...*} args
|
||||||
*/
|
*/
|
||||||
self.trigger = function (type, args) {
|
self.trigger = function (type) {
|
||||||
if (events[type] === undefined) {
|
if (events[type] === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy all arguments except the first
|
// Copy all arguments except the first
|
||||||
args = [];
|
var i, args = [];
|
||||||
var i;
|
|
||||||
for (i = 1; i < arguments.length; i++) {
|
for (i = 1; i < arguments.length; i++) {
|
||||||
args.push(arguments[i]);
|
args.push(arguments[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue