Saturday, 3 February 2018

javascript - How to find which line adds a certain js event handler?

A certain HTML element when clicked does something. I cannot find which line adds that click event. Is there any tool to help?



Chrome dev tools > Elements > (select that element, see right panel) > Event Listeners > click,it lists a few js file with line numbers,but they are js plugins. What I need is which line decides that element to use those plugins.



I also tried to search .click( but 1) there are too many other elements assigned with click events 2) the line in question may be written in other syntax, eg: .on('click'

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...