DataTables / VisualEvent

Visually show Javascript events on a page
http://sprymedia.co.uk
1.04k stars 162 forks source link

Retrieve the function that *bind* the event #20

Open ZeeD opened 12 years ago

ZeeD commented 12 years ago

It would be a killer feature to find what bind a function to an event.

Let's say I have this code

// somewhere.js function on_click() { // do something }

// somewhereelse.js function bind_events() { $('a').click(on_click); }

sometimes what I really want is bind_events, not on_click

DataTables commented 12 years ago

That's a really interesting idea. I'm not sure that that information is available from the libraries in order to do that (in fact I would be fairly surprised if it were), but most certainly worth a bit of investigation.