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

Passing context to modifier #33

Open
bnayalivne opened this issue Oct 31, 2018 · 0 comments
Open

Passing context to modifier #33

bnayalivne opened this issue Oct 31, 2018 · 0 comments

Comments

@bnayalivne
Copy link

bnayalivne commented Oct 31, 2018

Hey,

What do you think about passing the current context to a modifier as the "this" instance instead of the function itself as the context?

I mean replace this with:
return fname.apply(data, paramData)

This will allow more complex custom modifiers that needs more information to return the output.
Do you think it has any downside?

Thanks,
Bnaya

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

1 participant