更新时间:2023-09-30 10:23:16
I tried to trace back which function hooked into a click event of .someclass
. I open Chrome Dev Tool and type this
getEventListeners(document.querySelector('.someclass'));
The result is this
Object {}
I cannot click and open it to find out the name of the object or the source code that handle click event.
Is there a way to find out?
UPDATE 1:
Followed Krasimir's advise below. There could be only two events: mousemove
or mouseover
. So how do I find out the exact function handling that event for canvas.overlay
? There are just too many to drill down into.