-
Notifications
You must be signed in to change notification settings - Fork 18
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
HeadingView not destroyed when parent View is destroyed #516
Labels
Comments
I missed the contentObjectView in the fix when adding adapt-contrib-core/js/views/contentObjectView.js Lines 144 to 168 in de6fcd9
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
HeadingView instances are created when required:
adapt-contrib-core/js/headings.js
Lines 6 to 13 in d66704f
When a contentobject is destroyed it removes its descendant views but not the HeadingView as it has no handle to them:
adapt-contrib-core/js/views/contentObjectView.js
Lines 144 to 157 in d66704f
If a floating HeadingView model is _isComplete updated, it will rerender its ariaLabel:
adapt-contrib-core/js/views/headingView.js
Line 7 in d66704f
This is a memory leak.
The text was updated successfully, but these errors were encountered: