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

Store view references #2395

Closed
danielstorey opened this issue Mar 25, 2019 · 0 comments
Closed

Store view references #2395

danielstorey opened this issue Mar 25, 2019 · 0 comments

Comments

@danielstorey
Copy link
Member

danielstorey commented Mar 25, 2019

Store references to views on the page so that view instances can be retrieved at will without having to first store them by listening to all the different 'someView:postRender' events.

View references should be stored as child views on the parent. This will ensure that references remain in context of the Adapt model hierarchy, and that all references are removed when the location changes, so as to prevent memory leaks.

A findDescendantViews method should be created, to work in the same way as findDescendantModels

A getViewByModelId method would also be quite handy

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