summaryrefslogtreecommitdiff
path: root/js/Branching/MUX.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/MUX.js')
-rw-r--r--js/Branching/MUX.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Branching/MUX.js b/js/Branching/MUX.js
index 4644be89..2c672a94 100644
--- a/js/Branching/MUX.js
+++ b/js/Branching/MUX.js
@@ -23,11 +23,11 @@ function MUX() {
return options;
}
MUX.prototype.set = function MUX() {
- this.in1 = parseFloat(arguments[0]["in1"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.in1,this.exprs] = scicos_getvalue("Set MUX block parameters","number of input ports or vector of sizes",list("intvec",-1),this.exprs);
+ var ok = true;
+ this.in1 = parseFloat(arguments[0]["in1"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}