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

Context (caller's) as a property of the functor when triggering #279

Open
MatthewDavidCampbell opened this issue Mar 5, 2015 · 0 comments

Comments

@MatthewDavidCampbell
Copy link

Corner case whereby it would be helpful if the functor had a property housing the context of the action caller. Actions are triggered with:

 functor[functor.sync?"trigger":"triggerAsync"].apply(functor, arguments)

Can we save the "this" context either as a property to functor or passed in with the apply at the tail of the arguments?

Reason being is that on preEmit events it would be cool to check whom called and possibly modify the arguments to shouldEmit.

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

No branches or pull requests

2 participants