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

when callback, can you pass the function name back ? #46

Open
onion555 opened this issue Jan 9, 2019 · 1 comment
Open

when callback, can you pass the function name back ? #46

onion555 opened this issue Jan 9, 2019 · 1 comment

Comments

@onion555
Copy link

onion555 commented Jan 9, 2019

meld.after(this.object, [ 'query, 'list' ], (result, functionName /can you pass this back to me ?/)=> {
});

@briancavalier
Copy link
Member

Hi @onion555. Good question. You can access the current method name within any advice function via the current joinpoint's method property, i.e. `meld.joinpoint().method. See also here and here.

Hope that helps!

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

No branches or pull requests

2 participants