Skip to content

Commit cec5db8

Browse files
author
p01
committed
Only populate the list of the Document's resources once the document is set on the resource ( saves us from avoid the main resource of a document showing up in the parent document )
1 parent 87b5d42 commit cec5db8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/resource-manager/resource_service.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,12 @@ cls.ResourceManagerService = function(view, network_logger)
130130
ctx.resourceList
131131
.forEach(function(r)
132132
{
133-
this._populate_document_resources(r);
134-
135133
// check if this is the top resource of a document
136134
var documentID = ctx.documentResourceHash[r.resource_id];
137135
if (documentID != null && documentID != r.document_id)
138-
{
139136
r.document_id = documentID;
140-
this._populate_document_resources(r);
141-
}
137+
138+
this._populate_document_resources(r);
142139

143140
r.group = TYPE_GROUP_MAPPING[r.type]||TYPE_GROUP_MAPPING['*'];
144141
var d = this._documentList[documentID_index[r.document_id]];

0 commit comments

Comments
 (0)