diff --git a/src/nub.ts b/src/nub.ts index 701ece3592c048dd5e1299f35321d60fdb85d2be..7e045cfab860e16992a522db2c5c7f0ca4684593 100644 --- a/src/nub.ts +++ b/src/nub.ts @@ -133,23 +133,6 @@ export abstract class Nub extends ComputeNode implements IObservable { } } - /** - * Returns values of parameters and the result of the calculation for the calculated parameter - * @param sVarCalc Symbol of the calculated param - * @param result Result object of the calculation - */ - protected getParamValuesAfterCalc(sVarCalc: string, result: Result): { [key: string]: number } { - const cPrms: { [key: string]: number } = {}; - for (const p of this.parameterIterator) { - if (p.symbol === sVarCalc) { - cPrms[p.symbol] = result.vCalc; - } else { - cPrms[p.symbol] = p.v; - } - } - return cPrms; - } - /** * Resets the calculated parameter to the default one if it is in SINGLE * mode, or else to the first calculable parameter other than requirer. @@ -1051,6 +1034,23 @@ export abstract class Nub extends ComputeNode implements IObservable { this._observable.notifyObservers(data, sender); } + /** + * Returns values of parameters and the result of the calculation for the calculated parameter + * @param sVarCalc Symbol of the calculated param + * @param result Result object of the calculation + */ + protected getParamValuesAfterCalc(sVarCalc: string, result: Result): { [key: string]: number } { + const cPrms: { [key: string]: number } = {}; + for (const p of this.parameterIterator) { + if (p.symbol === sVarCalc) { + cPrms[p.symbol] = result.vCalc; + } else { + cPrms[p.symbol] = p.v; + } + } + return cPrms; + } + /** * For all SINGLE, LINK and CALC parameters, copies singleValue to * sandbox value (.v) before calculation