Ver código fonte

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

Added 2 explaining comments (about list of dependents)
leo 2 meses atrás
pai
commit
078f6fea4a
1 arquivos alterados com 2 adições e 1 exclusões
  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);
       }