Ver Fonte

Update 'src/app/core/models/application/actions/action.js'

Fix ID numbering and read of GEO with 3 straight lines (not fineshed!)
Only comment
leo há 2 anos atrás
pai
commit
4769e39794
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/app/core/models/application/actions/action.js

+ 3 - 3
src/app/core/models/application/actions/action.js

@@ -19,7 +19,6 @@ export class Action {
   constructor (genericObject) {
     var auxE = "1, ";
     try {
-      console.log("action.js!constructor(genericObject): this.id=" + (genericObject.id!=undefined ? genericObject.id : "<>")); //D
       this.id = genericObject.id; auxE += "2, "; //D
       this.type = genericObject.elementClass; auxE += "3, "; //D
       this.definition = this.r(genericObject.definitions.map(x => x.id).toString()); auxE += "4, "; //D
@@ -35,6 +34,7 @@ export class Action {
     } catch (error) {
       console.log("action.js!constructor(genericObject): Error '" + error + "', with " + auxE);
       }
+    console.log("action.js!constructor(genericObject): this.id=" + (genericObject.id!=undefined ? genericObject.id : "<>") + " final"); //D
     }
 
   do () {
@@ -85,11 +85,11 @@ export class Action {
     return strC;
     } // toString()
 
-  d (key, value) {
+  d (key, value) { //TODO this name must be improved!
     return `${key}:${value}`;
     }
 
-  r (str) {
+  r (str) { //TODO this name must be improved!
     return str.replace(/,/g, " ");
     }