Skip to content

Commit 1982e52

Browse files
Restore caching of object resolution that was accidentally removed
1 parent 9b5c845 commit 1982e52

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/object.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,8 @@ ReflectionObject.prototype.onRemove = function onRemove(parent) {
178178
ReflectionObject.prototype.resolve = function resolve() {
179179
if (this.resolved)
180180
return this;
181-
if (this instanceof Root) {
182-
this.resolved = true;
183-
}
181+
if (this.root instanceof Root)
182+
this.resolved = true; // only if part of a root
184183
return this;
185184
};
186185

0 commit comments

Comments
 (0)