Skip to content

Commit

Permalink
fix recursion of getTagTrackedProps (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Feb 18, 2020
1 parent 2555c5f commit edcce98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ember_debug/object-inspector.js
Expand Up @@ -200,13 +200,13 @@ function getTagTrackedProps(tag, ownTag, level = 0) {
}
if (tag.subtag) {
if (tag.subtag._propertyKey) props.push(tag.subtag._propertyKey);
props.push(...getTagTrackedProps(tag.subtag, level + 1));
props.push(...getTagTrackedProps(tag.subtag, ownTag, level + 1));
}
if (tag.subtags) {
tag.subtags.forEach((t) => {
if (t === ownTag) return;
if (t._propertyKey) props.push(t._propertyKey);
props.push(...getTagTrackedProps(t, level + 1));
props.push(...getTagTrackedProps(t, ownTag, level + 1));
});
}
return props;
Expand Down

0 comments on commit edcce98

Please sign in to comment.