diff --git a/src/Corporation/corporate.js b/src/Corporation/corporate.js index 9fd85d7976843558787b461a2ad161c6e3d1a662..6028170bdf72b48f3275d435184035efca9e11e5 100644 --- a/src/Corporation/corporate.js +++ b/src/Corporation/corporate.js @@ -264,7 +264,7 @@ App.Corporate.Init = function() { super(); this._const.category = App.Corporate.maintenance.divisionCategories[categoryId]; - if(this._const.category == null) { debugger; throw new "Invalid category id: " + categoryId; } + if(this._const.category == null) { throw new "Invalid category id: " + categoryId; } this._var.divisions = []; } addDivision(division) { @@ -320,7 +320,7 @@ App.Corporate.Init = function() { return this._var.operatingCost; } set operatingCost(value) { - if(!Number.isFinite(value)) { debugger; throw "Operating cost wasn't finite "; } + if(!Number.isFinite(value)) { throw "Operating cost wasn't finite "; } this._var.operatingCost = Math.trunc(value); } get overhead() { @@ -665,7 +665,6 @@ App.Corporate.Init = function() { if(!Number.isFinite(cost)) { throw "The cost provided was not real"; } cost = Math.trunc(cost); if(weekLedger == null) { - debugger; throw "No weekLedger provided"; } this.dividend += cost;