Commits

trikitrok  committed ad6a69c Draft

Removed factory

  • Participants
  • Parent commits e935fc0

Comments (0)

Files changed (1)

File src/TypeCodes.js

     MORBID: "Morbid"
 };
 
-function WeightTypeFactory(weightCode) {
-    return eval("new " + weightCode + "();")
-};
-
 function HumanMetabolism() {
 
 	this.complexion;
 
 	this.getDailyCalories = function() {
-	
-	    var weightType = WeightTypeFactory(this.complexion);
-	    
-	    return weightType.getDailyCalories();
+        var weightType = eval("new " + this.complexion + "();");
+        return weightType.getDailyCalories();
 	};
 
 	this.setComplexion = function(aComplexion) {