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

Commit

Permalink
When rendering nested shadow hosts we need to always rerender descend…
Browse files Browse the repository at this point in the history
…ant trees
  • Loading branch information
arv committed Feb 26, 2014
1 parent 7578669 commit cfc8aa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ShadowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,12 @@
var renderTimer;

function renderAllPending() {
// TODO(arv): Order these in document order. That way we do not have to
// render something twice.
for (var i = 0; i < pendingDirtyRenderers.length; i++) {
pendingDirtyRenderers[i].render();
}

pendingDirtyRenderers = [];
}

Expand Down Expand Up @@ -403,7 +406,8 @@

if (isShadowHost(node)) {
var renderer = getRendererForHost(node);
renderNode.skip = !renderer.dirty;
// renderNode.skip = !renderer.dirty;
renderer.invalidate();
renderer.render(renderNode);
} else {
for (var child = node.firstChild; child; child = child.nextSibling) {
Expand Down

0 comments on commit cfc8aa4

Please sign in to comment.