ralix
ralix copied to clipboard
Adding options in `on` helper
in addEventListener we can pass an object with some usefult options like once, capture or signal but right now we can't pass this options using the on helper. So my proposal is to add an optional param:
on(query, events, callback, options = {})
Seems like this is a good idea actually. Please feel free to send a patch!