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

joinpoint.proceed() #19

Closed
jbadeau opened this issue Apr 27, 2015 · 2 comments
Closed

joinpoint.proceed() #19

jbadeau opened this issue Apr 27, 2015 · 2 comments

Comments

@jbadeau
Copy link

jbadeau commented Apr 27, 2015

Hi,

This issue is for a feature

I would like to have a way to change the args in the join-point. Some AOP lib have something like:

joinpoint.proceed(newArg1, newArg2, ...)

where:

  • When, called, causes the original method to be invoked
  • When called without arguments, the original arguments will be passed.
  • When called with arguments, they will be passed
    instead of the original arguments

I currently am forced to modify the joinpoint.args which is not very clean and also does not allow aspects like memoize as the original method is always invoked.

Cheers,
Jose

@mgechev
Copy link
Owner

mgechev commented Apr 28, 2015

This feature makes sense to me. I'll add it to the roadmap.

@mgechev
Copy link
Owner

mgechev commented Apr 1, 2016

Here's more flexible version of using AOP with JavaScript.

This project is no longer maintained.

@mgechev mgechev closed this as completed Apr 1, 2016
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