function updateEq()

in ui/src/app/common/components/indigo-components/directives/stoich-table/domain/reagent/calculation-row/reagent-row.js [103:113]


function updateEq(limitingRow) {
    var isArgsExist = limitingRow && this.mol.value && limitingRow.mol.value;
    var canUpdateEq = this.weight.entered || this.mol.entered || this.molarity.entered || this.density.entered;

    if (isArgsExist && canUpdateEq) {
        this.resetEntered([fieldTypes.eq]);
        this.eq.value =
            mathCalculation.computeEq(this.mol.value, limitingRow.eq.value, limitingRow.mol.value);
        this.eq.prevValue = this.eq.value;
    }
}