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/DELAYV_f.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'js/Linear/DELAYV_f.js') diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js index 7677921c..516a768a 100644 --- a/js/Linear/DELAYV_f.js +++ b/js/Linear/DELAYV_f.js @@ -33,17 +33,17 @@ function DELAYV_f() { return options; } DELAYV_f.prototype.set = function DELAYV_f() { - this.nin = parseFloat(arguments[0]["nin"]) - this.zz0 = inverse(arguments[0]["zz0"]) - this.T = parseFloat(arguments[0]["T"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; this.nin = this.model.in[1-1]; var z0 = this.model.dstate; this.zz0 = z0.slice(1-1,$-1); var told = z0[$-1]; while (true) { - [ok,this.nin,this.zz0,this.T,this.exprs] = scicos_getvalue("Set delay parameters",["Number of inputs","Register initial condition","Max delay"],list("vec",1,"vec",-1,"vec",1),this.exprs); + var ok = true; + this.nin = parseFloat(arguments[0]["nin"]); + this.zz0 = inverse(arguments[0]["zz0"]); + this.T = parseFloat(arguments[0]["T"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } -- cgit