Skip to content

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

Open
thibaultzanini wants to merge 2 commits intomontagejs:masterfrom
thibaultzanini:attributes-values-2-maps
Open

Migrate attribute value changes logic to a two levels Map.#1763
thibaultzanini wants to merge 2 commits intomontagejs:masterfrom
thibaultzanini:attributes-values-2-maps

Conversation

@thibaultzanini
Copy link
Copy Markdown
Contributor

Preparatory works for buffered DOM changes.

Comment thread ui/component.js

_bufferedElementsAttributeValues: {
get: function () {
return this.__bufferedElementsAttributeValues || (this.__bufferedElementsAttributeValues = new Map());
Copy link
Copy Markdown
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
Copy Markdown
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
@hthetiot hthetiot requested review from hthetiot and marchant July 13, 2017 01:55
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