Skip to content

Commit

Permalink
Reset event parent when we redistribute a node.
Browse files Browse the repository at this point in the history
This was causing the iloop in platform/workbench/menu-button.html
  • Loading branch information
arv committed Apr 12, 2013
1 parent d030e42 commit e701c2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ShadowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@
}

function resetDistributedChildNodes(insertionPoint) {
var oldDistributed = getDistributedChildNodes(insertionPoint);
if (oldDistributed) {
oldDistributed.forEach(function(node) {
eventParentTable.set(node, undefined);
});
}
distributedChildNodesTable.set(insertionPoint, []);
}

Expand Down

0 comments on commit e701c2e

Please sign in to comment.