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

2.4 - Load helpers at View construction. #1570

Merged
merged 2 commits into from Aug 28, 2013
Merged

2.4 - Load helpers at View construction. #1570

merged 2 commits into from Aug 28, 2013

Conversation

markstory
Copy link
Member

Loading helpers earlier in View's lifecycle allows for the removal of many duplicated code segments and a now useless property. It slightly modifies how View behaves in a test case, but that issue is easily remedied by calling loadHelpers() a second time.

This primarily fixes issues where helpers may not be loaded in View subclasses if they override any of View's methods. This is particularly problematic when aliased helpers are involved.

Related to #1564 and #1565

Loading helpers earlier in View's lifecycle allows for the removal of
many duplicated code segments and a now useless property. It slightly
modifies how View behaves in a test case, but that issue is easily
remedied by calling loadHelpers() a second time.

This primarily fixes issues where helpers may not be loaded in View
subclasses if they override any of View's methods. This is particularly
problematic when aliased helpers are involved.

Refs #4030
@ADmad
Copy link
Member

ADmad commented Aug 28, 2013

Loading helpers when they aren't going to be used is wasteful.
@markstory
Copy link
Member Author

@ADmad should be fixed now.

@ADmad
Copy link
Member

ADmad commented Aug 28, 2013

👍

markstory added a commit that referenced this pull request Aug 28, 2013
2.4 - Load helpers at View construction.
@markstory markstory merged commit a902529 into 2.4 Aug 28, 2013
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

Successfully merging this pull request may close these issues.

None yet

3 participants