How to find event handlers?


#1

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.


#2

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!?


#3

I already commented

Template.templateName.events({…});

out but it is still firing.


#4

Ah found it:

It was a href in the link tag inside the button that was firing.