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

determine after or before in "usage" instead of the declaration --edit #1

Closed
k1r0s opened this issue Nov 17, 2016 · 2 comments
Closed

Comments

@k1r0s
Copy link
Owner

k1r0s commented Nov 17, 2016

No description provided.

@k1r0s
Copy link
Owner Author

k1r0s commented Dec 14, 2016

in fact, its better to define "hooks".. i need to keep this. What im looking is just have the possibility to be more expressive. If we can optionally declare the annotation at the end of the function we're making our code more readable.

IE:

var service = Class.static({
  actionWhichNeedsToBeLoggedAfterExecution: [function(){}, "$log"],
  actionWhichNeedsToBeLoggedBeforeExecution: ["$log", function(){}]
})

@k1r0s k1r0s changed the title determine after or before in "usage" instead of the declaration determine after or before in "usage" instead of the declaration --edit Dec 14, 2016
@k1r0s
Copy link
Owner Author

k1r0s commented Dec 15, 2016

this issue was solved by 04b82f5

@k1r0s k1r0s closed this as completed Dec 15, 2016
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