From 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 16 Jul 2018 18:13:55 +0530 Subject: move the options in the loop --- js/Linear/DOLLAR.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/Linear/DOLLAR.js') diff --git a/js/Linear/DOLLAR.js b/js/Linear/DOLLAR.js index 6541259b..e8a5e691 100644 --- a/js/Linear/DOLLAR.js +++ b/js/Linear/DOLLAR.js @@ -28,15 +28,15 @@ function DOLLAR() { return options; } DOLLAR.prototype.set = function DOLLAR() { - this.a = arguments[0]["a"] - this.inh = parseFloat(arguments[0]["inh"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; if (size(this.exprs,"*")<2) { this.exprs[2-1] = "0"; } while (true) { - [ok,this.a,this.inh,this.exprs] = scicos_getvalue("Set 1/z block parameters",["initial condition","Inherit (no:0, yes:1)"],list("mat",[-1,-2],"vec",-1),this.exprs); + var ok = true; + this.a = arguments[0]["a"]; + this.inh = parseFloat(arguments[0]["inh"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } -- cgit