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

Migrate attribute value changes logic to a two levels Map. #1763

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Migrate attribute value changes logic to a two levels Map. #1763

wants to merge 2 commits into from

Conversation

thibaultzanini
Copy link
Contributor

Preparatory works for buffered DOM changes.


_bufferedElementsAttributeValues: {
get: function () {
return this.__bufferedElementsAttributeValues || (this.__bufferedElementsAttributeValues = new Map());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be WeakMap as we don't want to hold on "gone" elements

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A weak map can't be iterated.

@hthetiot hthetiot added this to the Future milestone Apr 12, 2017
@hthetiot hthetiot modified the milestones: v18.x, Future Apr 12, 2017
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.

3 participants