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

Fix #2587: When Polymer.dom(el).appendChild(node) is called, cleanup … #2588

Merged
merged 1 commit into from
Oct 17, 2015

Conversation

sorvell
Copy link
Contributor

@sorvell sorvell commented Oct 17, 2015

…work must be performed on the existing parent of node. This change fixes a missing case in this cleanup work: if the existing parent has a observer via Polymer.dom(parent).observeNodes, it needs to be notified that node is being removed even if the node does not have specific logical info. For example, if an observed node has no Shady DOM and has a child that is removed. A test for this case was added.

…work must be performed on the existing parent of node. This change fixes a missing case in this cleanup work: if the existing parent has a observer via `Polymer.dom(parent).observeNodes`, it needs to be notified that node is being removed even if the node does not have specific logical info. For example, if an observed node has no Shady DOM and has a child that is removed. A test for this case was added.
@kevinpschaaf
Copy link
Member

LGTM

kevinpschaaf added a commit that referenced this pull request Oct 17, 2015
Fix #2587: When Polymer.dom(el).appendChild(node) is called, cleanup …
@kevinpschaaf kevinpschaaf merged commit f10deb1 into master Oct 17, 2015
@kevinpschaaf kevinpschaaf deleted the fix-2587 branch October 17, 2015 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants