Skip to content

Commit

Permalink
Make remote nodes non-enumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmarcum committed Nov 27, 2023
1 parent 5f14672 commit ff245d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ember_debug/libs/render-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ class InElementSupportProvider {
registerRemote(block, node) {
const obj = this.buildInElementNode(node);
if (this.currentNode) {
this.currentNode.remotes = this.currentNode.remotes || [];
if (!this.currentNode.remotes) Object.defineProperty(this.currentNode, 'remotes', {
value: []
});
this.currentNode.remotes.push(obj);
}
this.remoteRoots.push(obj);
Expand Down

0 comments on commit ff245d2

Please sign in to comment.