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.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/Branching/MUX.js b/js/Branching/MUX.js
index 710b3825..96a34c93 100644
--- a/js/Branching/MUX.js
+++ b/js/Branching/MUX.js
@@ -4,7 +4,7 @@ function MUX() {
this.in1 = 2;
this.model = scicos_model();
this.model.sim = list(new ScilabString(["multiplex"]), new ScilabDouble([4]));
- this.model.in1 = new ScilabDouble(-transpose([1:this.in1]));
+ this.model.in = new ScilabDouble(-transpose([1:this.in1]));
this.model.out = new ScilabDouble([0]);
this.model.ipar = new ScilabDouble([this.in1]);
this.model.blocktype = new ScilabString(["c"]);
@@ -25,10 +25,7 @@ function MUX() {
MUX.prototype.set = function MUX() {
this.in1 = parseFloat(arguments[0]["in1"])
this.exprs = arguments[0]["exprs"]
- this.x = arg1;
- this.graphics = arg1.graphics;
this.exprs = this.graphics.exprs;
- this.model = arg1.model;
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);
if (!ok) {