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/DIFF_c.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/Linear/DIFF_c.js') diff --git a/js/Linear/DIFF_c.js b/js/Linear/DIFF_c.js index 8167fd08..90f18fe0 100644 --- a/js/Linear/DIFF_c.js +++ b/js/Linear/DIFF_c.js @@ -25,13 +25,13 @@ function DIFF_c() { return options; } DIFF_c.prototype.set = function DIFF_c() { - this.x0 = inverse(arguments[0]["x0"]) - this.xd0 = inverse(arguments[0]["xd0"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; while (true) { var ask_again = false; - [ok,this.x0,this.xd0,this.exprs] = scicos_getvalue("Set continuous linear system parameters",["Initial state","Initial Derivative"],list("vec",-1,"vec",-1),this.exprs); + var ok = true; + this.x0 = inverse(arguments[0]["x0"]); + this.xd0 = inverse(arguments[0]["xd0"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } -- cgit