Commit afa48866 authored by Grand Francois's avatar Grand Francois
Browse files

ticket #36 : simplification du constructeur CalcResult

Showing with 2 additions and 9 deletions
+2 -9
......@@ -514,7 +514,7 @@ export class CourbeRemous extends Nub {
// "tRes": { [key: number]: number }
// }
CalcResult {
const res = new CalcResult(undefined);
const res = new CalcResult();
// let Yc: number = this.Sn.Calc("Yc");
const rYC = this.Sn.Calc("Yc");
......
......@@ -124,16 +124,9 @@ export class CalcResult {
private _results: Result[];
constructor(v: number | Message | Result, d: {} = undefined) {
constructor() {
this._globalLog = new cLog();
this._results = [];
if (typeof (v) == "number" || v instanceof Message) {
const res = new Result(v, d);
this._results.push(res);
}
else if (v instanceof Result) {
this._results.push(v);
}
}
private get result(): Result {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment