Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #252 from arv/remove-useless-associate-node
Browse files Browse the repository at this point in the history
No need to associate node with renderer just to remove stale child nodes
  • Loading branch information
Steve Orvell committed Sep 11, 2013
2 parents 06501ab + eb7dab0 commit 1a871e4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ShadowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,6 @@
renderNode.skip = !renderer.dirty;
renderer.render(renderNode);
} else {
// We associate the parent of a content/shadow with the renderer
// because we may need to remove stale childNodes.
if (shadowDOMRendererTable.get(node))
this.associateNode(node);
for (var child = node.firstChild; child; child = child.nextSibling) {
this.renderNode(shadowRoot, renderNode, child, isNested);
}
Expand Down

0 comments on commit 1a871e4

Please sign in to comment.