Skip to content

Commit ff245d2

Browse files
committed
Make remote nodes non-enumerable
1 parent 5f14672 commit ff245d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ember_debug/libs/render-tree.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ class InElementSupportProvider {
165165
registerRemote(block, node) {
166166
const obj = this.buildInElementNode(node);
167167
if (this.currentNode) {
168-
this.currentNode.remotes = this.currentNode.remotes || [];
168+
if (!this.currentNode.remotes) Object.defineProperty(this.currentNode, 'remotes', {
169+
value: []
170+
});
169171
this.currentNode.remotes.push(obj);
170172
}
171173
this.remoteRoots.push(obj);

0 commit comments

Comments
 (0)