-
Notifications
You must be signed in to change notification settings - Fork 396
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
Make closure to registerAllowedMethod optional #191
Make closure to registerAllowedMethod optional #191
Conversation
Before, you had to specify the closure to registerAllowedMethod, even if you wanted the default behaviour. For this reason, a big block of registerAllowedMethod calls has a lot of noise, because each line ends with `, null)`. This chang makes it possible to omit. Technically, this change is not API-compatible, but I think the benefits outweigh the small amount of corner-cases this might break...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that 5a0e631 should be dropped. Unless I'm missing something, the execution will not be the same.
At least the captured call tree from the test |
Dropped the commit for now, I'll try to find more evidence for my claims :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good to me, what do you think @stchar?
Nice! Merged. |
feat(declarative): apply changes done in #191
For your consideration - I'm fine if this is considered too dangerous 😺 - just close and forget the pull request then
Before, you had to specify the closure to registerAllowedMethod, even
if you wanted the default behaviour. For this reason, a big block of
registerAllowedMethod calls has a lot of noise, because each line ends
with
, null)
. This change makes it possible to omit.Technically, this change is not API-compatible, but I think the benefits
outweigh the small amount of corner-cases this might break...