|
@@ -47,10 +47,22 @@ export class DrawerAggregator {
|
|
|
setElementClass (elementClass) {
|
|
|
this.elementClass = elementClass;
|
|
|
}
|
|
|
+
|
|
|
addAggregator (aggregator) {
|
|
|
- if (!this.aggregators.includes(aggregator)) {
|
|
|
- this.aggregators.push(aggregator);
|
|
|
- this.genericObject.dependentsOnThis.push(aggregator.genericObject);
|
|
|
+ if (this.aggregators==undefined) {
|
|
|
+ console.log("drawer-aggregator.js!addAggregator(aggregator): Error, 'this.aggregators==undefined'");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var auxE = "1, ";
|
|
|
+ try {
|
|
|
+ if (!this.aggregators.includes(aggregator)) {
|
|
|
+ auxE += "2, "; //D
|
|
|
+ this.aggregators.push(aggregator);
|
|
|
+ auxE += "3, "; //D
|
|
|
+ this.genericObject.dependentsOnThis.push(aggregator.genericObject);
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ console.log("drawer-aggregator.js!addAggregator(aggregator): Error '" + error + "', with " + auxE);
|
|
|
}
|
|
|
}
|
|
|
|