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/MatrixOp/SQRT.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/MatrixOp/SQRT.js') diff --git a/js/MatrixOp/SQRT.js b/js/MatrixOp/SQRT.js index 517f55dd..c1268dbd 100644 --- a/js/MatrixOp/SQRT.js +++ b/js/MatrixOp/SQRT.js @@ -25,11 +25,11 @@ function SQRT() { return options; } SQRT.prototype.set = function SQRT() { - this.typ = inverse(arguments[0]["typ"]) - this.exprs = arguments[0]["exprs"] var label = this.graphics.exprs; while (true) { - [ok,this.typ,this.exprs] = scicos_getvalue("Set SQRT Block",["Datatype(1=real double 2=Complex)"],list("vec",1),label); + var ok = true; + this.typ = inverse(arguments[0]["typ"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } -- cgit