I click on a button in Meteor and an event method is called. But I cannot find which one and in which file it is.
Is there any way? E.g. to enable a debugging breakpoint on events (I use WebStorm).
Thank you.
I click on a button in Meteor and an event method is called. But I cannot find which one and in which file it is.
Is there any way? E.g. to enable a debugging breakpoint on events (I use WebStorm).
Thank you.
Well assuming the event handler is not a global thing, it must be in the template’s event map. So look for Template.templateName.events({...});
and see if you can see it in there!?
I already commented
Template.templateName.events({…});
out but it is still firing.
Ah found it:
It was a href in the link tag inside the button that was firing.