UNPKG

620 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class ReflectionCategory {
4 constructor(title) {
5 this.children = [];
6 this.title = title;
7 this.allChildrenHaveOwnDocument = (() => this.getAllChildrenHaveOwnDocument());
8 }
9 getAllChildrenHaveOwnDocument() {
10 let onlyOwnDocuments = true;
11 this.children.forEach((child) => {
12 onlyOwnDocuments = onlyOwnDocuments && !!child.hasOwnDocument;
13 });
14 return onlyOwnDocuments;
15 }
16}
17exports.ReflectionCategory = ReflectionCategory;
18//# sourceMappingURL=ReflectionCategory.js.map
\No newline at end of file