Quellcode durchsuchen

Update 'src/app/core/drawers/drawer.js'

Added 2 explaining comments (about list of dependents)
leo vor 2 Monaten
Ursprung
Commit
078f6fea4a
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      src/app/core/drawers/drawer.js

+ 2 - 1
src/app/core/drawers/drawer.js

@@ -55,13 +55,14 @@ export class Drawer {
     Selector.clear();
     }
 
+  // Used to keep the list of object that is directly dependent of one object
   addAggregator (aggregator) {
     var auxE = "";
     try { // To avoid 'TypeError: cyclic object value'
       auxE += "1, "; //D
       this.addAction(new Action(aggregator.genericObject)); // app/core/models/application/actions/action.js
       auxE += "2, "; //D
-      DrawerManager.addAggregator(aggregator);
+      DrawerManager.addAggregator(aggregator); // class DrawerManager in app/core/drawers/drawer-manager.js
     } catch (error) {
       console.log("drawer.js!addAggregator(aggregator): Error '" + error + "', with " + auxE);
       }