Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve the function that *bind* the event #20

Open
ZeeD opened this issue Aug 14, 2012 · 1 comment
Open

Retrieve the function that *bind* the event #20

ZeeD opened this issue Aug 14, 2012 · 1 comment
Labels

Comments

@ZeeD
Copy link

ZeeD commented Aug 14, 2012

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant