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/MATRESH.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'js/MatrixOp/MATRESH.js')

diff --git a/js/MatrixOp/MATRESH.js b/js/MatrixOp/MATRESH.js
index 2dd99416..ed92363f 100644
--- a/js/MatrixOp/MATRESH.js
+++ b/js/MatrixOp/MATRESH.js
@@ -37,16 +37,16 @@ function MATRESH() {
         return options;
     }
     MATRESH.prototype.set = function MATRESH() {
-        this.typ = inverse(arguments[0]["typ"])
-        this.l1 = arguments[0]["l1"]
-        this.out = arguments[0]["out"]
-        this.lab = arguments[0]["lab"]
         var label = this.graphics.exprs;
         if (size(label,"*")==14) {
             label[9-1] = [];
         }
         while (true) {
-            [ok,this.typ,this.l1,this.out,this.lab] = scicos_getvalue("Set MATRESH block parameters",["Datatype(1=real double  2=Complex)","input size","output size desired"],list("vec",-1,"vec",-1,"vec",-1),label);
+            var ok = true;
+            this.typ = inverse(arguments[0]["typ"]);
+            this.l1 = arguments[0]["l1"];
+            this.out = arguments[0]["out"];
+            this.lab = arguments[0]["lab"];
             if (!ok) {
                 break;
             }
-- 
cgit