[BUG] Passing event parameters

Hiyo CC,

So when you setup a node.on() event, you have to wrap your arguments in an object or array and pass that.

Then in your listener function you have to rig up event.detail on everything.

this.node.on('myevent', myfunction, this);

myfunction (event) {
let parameterName1 = event.detail[0];
let parameterName2 = event.detail[1];
}

The alternative being that you rig up all those arguments in side a lambda
this.node.on('myevent', event => myfunction(event.detail[0], event.detail[1]), this)
or spread
this.node.on('myevent', event => myfunction(...event.detail), this)

why not fix this by setting up your event-listener.js to apply the arguments passed? you would just have to loop through the object keys or array