Skip to content
Snippets Groups Projects
Commit 884d8d3c authored by François Grand's avatar François Grand
Browse files

refactor: unused code in FormulaireSolveur.update()

refs #601
parent 9e25a948
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!203Resolve "Solveur multimodule: le module existe toujours après suppression"
...@@ -47,11 +47,10 @@ export class FormulaireSolveur extends FormulaireFixedVar { ...@@ -47,11 +47,10 @@ export class FormulaireSolveur extends FormulaireFixedVar {
} }
} }
// copied from FormFixedVar, to avoid calling super.update() // copied from FormFixedVar, to avoid calling super.update()
if (data.action === "propertyChange") { else if (data.action === "propertyChange") {
this.reset(); this.reset();
} }
else if (sender instanceof SelectField) {
if (sender instanceof SelectField) {
if (sender.id === "select_target_nub" && data.action === "select") { if (sender.id === "select_target_nub" && data.action === "select") {
// update Solveur property: Nub to calculate // update Solveur property: Nub to calculate
try { try {
...@@ -81,9 +80,7 @@ export class FormulaireSolveur extends FormulaireFixedVar { ...@@ -81,9 +80,7 @@ export class FormulaireSolveur extends FormulaireFixedVar {
// reflect changes in GUI // reflect changes in GUI
const inputXinit = this.getFormulaireNodeById("Xinit") as NgParameter; const inputXinit = this.getFormulaireNodeById("Xinit") as NgParameter;
inputXinit.notifyValueModified(this); inputXinit.notifyValueModified(this);
} } else if (sender.id === this._targettedResultSelectId) {
} else if (sender instanceof SelectField) {
if (sender.id === this._targettedResultSelectId) {
// refresh parameters selector // refresh parameters selector
this.refreshParameterEntries(); this.refreshParameterEntries();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment