So I am doing pretty well (re)writing my first plugin. I have finally got to the point where I just need to trigger a workflow when the user clicks on the element. I thought this would be pretty easy. I declared an event called in ‘clicked’ in the plugin editor and get a clicked option in the workflow option. But the editor says it’s my responsibility to define the event in the element code. Fair enough. I wrote:
$("#innermatte").on("click", function() {
console.log("innermatte clicked");
event.stopPropagation();
bubble.clicked();
});
I can see the click being seen in the console but how do I pass this event on to bubble? I know bubble.clicked() is garbage BTW! It’s just a placeholder for where I guess something is needed.