Multiple listeners to NativeEvents

I’ve set up a NativeEvent in Uno.

NativeEvent _myEvent = new NativeEvent("onMyEvent");
AddMember(_myEvent);

And it’s fully usable in JS

MyModule.onMyEvent = function(args){

}

However I cannot add more than one listener to that event - which goes against the whole point of an event imho. The way it seems to work now is more of a callback than an event. So my question is, how can I achieve multiple listeners for a NativeEvent?

Yes, this is something we have had on our list for a long time. We have a shim for the EventTarget interface included that you can use on the JS side and then wrap your native function with that. Thats how XMLHttpRequest is done. I will add this forum post to the issue so we can notify you when we have a better solution.