Skip to content

Commit

Permalink
fix recursion of getTagTrackedProps (#1144)
Browse files Browse the repository at this point in the history
(cherry picked from commit edcce98)
  • Loading branch information
patricklx authored and chancancode committed Feb 20, 2020
1 parent da9c574 commit f4dc79c
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 f4dc79c

Please sign in to comment.