ZK Zhao
ZK Zhao

Reputation: 21613

Javascript: How to know what function being runned at a DOM when I resize the window?

When I adjust my window's size, I notice the css style changed accordingly:

enter image description here

However, I don't know what function is responsible for this. Is there anyway I can know what function is runned when I resize the window?


I find How to know what function (or code snippet) is triggered when an event happens?

But the jQuery-log seems not working in this page. I'm trying FireQuery right now.

Upvotes: 0

Views: 80

Answers (1)

Alex
Alex

Reputation: 2126

Google Chrome has a function called getEventListeners. When you enter the dev tools just open the console and type in:

getEventListeners(window)

This should show you the event listener of the window object. Now take a look at the resize handlers.

Upvotes: 2

Related Questions