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

Make ComPagesTemplateHelperBehavior::isLoaded() smart #650

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Apr 15, 2021

This PR Closes #649 and improve ComPagesTemplateHelperBehavior::isLoaded() making is smarter. If the method is called without a key the callee will be retrieved from the callstack and used as key, setLoaded() is also automatically called. This makes it simple to implement behavior helpers, just calling isLoaded() to prevent re-inserting html is sufficient.

- Retrieve the method name from the callstack if no key provided
- Automatically setLoaded()
@johanjanssens johanjanssens changed the base branch from master to 0.19 April 15, 2021 00:33
@johanjanssens johanjanssens merged commit b00ea19 into 0.19 Apr 15, 2021
@johanjanssens johanjanssens deleted the feature/649-behavior branch April 15, 2021 00:35
@johanjanssens johanjanssens restored the feature/649-behavior branch April 19, 2021 19:26
@johanjanssens johanjanssens deleted the feature/649-behavior branch April 20, 2021 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make ComPagesTemplateHelperBehavior::isLoaded() smart
1 participant