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/IntegerOp/LOGIC.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'js/IntegerOp/LOGIC.js')

diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js
index ce05e1ab..06eb2c10 100644
--- a/js/IntegerOp/LOGIC.js
+++ b/js/IntegerOp/LOGIC.js
@@ -31,12 +31,12 @@ function LOGIC() {
         return options;
     }
     LOGIC.prototype.set = function LOGIC() {
-        this.mat = inverse(arguments[0]["mat"])
-        this.herit = arguments[0]["herit"]
-        this.exprs = arguments[0]["exprs"]
         this.exprs = this.graphics.exprs;
         while (true) {
-            [ok,this.mat,this.herit,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","LOGIC")],[" "],["Combinatorial logic"],[" "],["  Rows of the matrix are the output values"],["  Number of rows must be a power of two."],["  Number of columns gives the number of outputs."],[" "]],["Truth Table (matrix of outputs)","Accepts Inherited Events (0:No, 1:Yes)"],list("mat",[-1,-2],"vec",1),this.exprs);
+            var ok = true;
+            this.mat = inverse(arguments[0]["mat"]);
+            this.herit = arguments[0]["herit"];
+            this.exprs = arguments[0]["exprs"];
             if (!ok) {
                 break;
             }
-- 
cgit