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

Move order to third parameter and make optional? #4

Open
pwFoo opened this issue Dec 31, 2019 · 0 comments
Open

Move order to third parameter and make optional? #4

pwFoo opened this issue Dec 31, 2019 · 0 comments

Comments

@pwFoo
Copy link

pwFoo commented Dec 31, 2019

Maybe it would be easier to have "order" as third and optional parameter for addCallback()?
Default could be "0" and be executed after the original method? More than one hook with the same order will be executed with the same priority?

"HookBefore" could be done by negative order and a higher positive value would be executed later ("hookAfter").

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