@barchart/portfolio-api-common 1.0.145 → 1.0.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -230,15 +230,17 @@ module.exports = (() => {
|
|
|
230
230
|
const initializeGroupObservers = (group, groupTree) => {
|
|
231
231
|
addGroupBinding(group, group.registerGroupExcludedChangeHandler((excluded, sender) => {
|
|
232
232
|
groupTree.climb((parentGroup, parentTree) => {
|
|
233
|
-
|
|
233
|
+
if (parentGroup !== null) {
|
|
234
|
+
let excludedItems = [];
|
|
234
235
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
currentTree.walk((childGroup, childTree) => {
|
|
237
|
+
if (childGroup.excluded) {
|
|
238
|
+
excludedItems = excludedItems.concat(childGroup.items);
|
|
239
|
+
}
|
|
240
|
+
}, false, false);
|
|
240
241
|
|
|
241
|
-
|
|
242
|
+
parentGroup.setExcludedItems(array.unique(excludedItems));
|
|
243
|
+
}
|
|
242
244
|
}, false);
|
|
243
245
|
}));
|
|
244
246
|
};
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -946,15 +946,17 @@ module.exports = (() => {
|
|
|
946
946
|
const initializeGroupObservers = (group, groupTree) => {
|
|
947
947
|
addGroupBinding(group, group.registerGroupExcludedChangeHandler((excluded, sender) => {
|
|
948
948
|
groupTree.climb((parentGroup, parentTree) => {
|
|
949
|
-
|
|
949
|
+
if (parentGroup !== null) {
|
|
950
|
+
let excludedItems = [];
|
|
950
951
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
952
|
+
currentTree.walk((childGroup, childTree) => {
|
|
953
|
+
if (childGroup.excluded) {
|
|
954
|
+
excludedItems = excludedItems.concat(childGroup.items);
|
|
955
|
+
}
|
|
956
|
+
}, false, false);
|
|
956
957
|
|
|
957
|
-
|
|
958
|
+
parentGroup.setExcludedItems(array.unique(excludedItems));
|
|
959
|
+
}
|
|
958
960
|
}, false);
|
|
959
961
|
}));
|
|
960
962
|
};
|