Skip to content

Commit

Permalink
Merge pull request #6 from mattmarcum/serialize-remotes
Browse files Browse the repository at this point in the history
serialize remotes
  • Loading branch information
patricklx authored Dec 12, 2023
2 parents d70b2c8 + ff245d2 commit d756e41
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 d756e41

Please sign in to comment.