I have been trying to implement a wildcard name within a custom event handler. A fixed event name is working fine but I would like the handler to handle a number of different scenarios.
// this works fine
this.on("custom_event_name", function(e) {
//some stuff
));
This also works
// this also works
this.on("event_"+foo, function(e) {
//some stuff
));
What I have been trying to achieve is something similar to how wildcards work in JQuery selectors
$("[class^=bar]")
Is this possible with event handlers?
Thanks