summaryrefslogtreecommitdiff
path: root/js/Branching/CLKGOTO.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/CLKGOTO.js')
-rw-r--r--js/Branching/CLKGOTO.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Branching/CLKGOTO.js b/js/Branching/CLKGOTO.js
index 4fd32282..55d9edba 100644
--- a/js/Branching/CLKGOTO.js
+++ b/js/Branching/CLKGOTO.js
@@ -2,12 +2,12 @@
function CLKGOTO() {
CLKGOTO.prototype.define = function CLKGOTO() {
this.model = scicos_model();
- this.model.sim = new ScilabString("clkgoto");
- this.model.evtin = new ScilabDouble(1);
- this.model.opar = list(new ScilabString("A"));
- this.model.ipar = new ScilabDouble(int(1));
- this.model.blocktype = new ScilabString("d");
- this.model.firing = new ScilabDouble(-1);
+ this.model.sim = new ScilabString(["clkgoto"]);
+ this.model.evtin = new ScilabDouble([1]);
+ this.model.opar = list(new ScilabString(["A"]));
+ this.model.ipar = new ScilabDouble([int(1)]);
+ this.model.blocktype = new ScilabString(["d"]);
+ this.model.firing = new ScilabDouble([-1]);
this.model.dep_ut = [false,false];
exprs = [["A"],[sci2exp(1)]];
this.x = standard_define([2,1],this.model,exprs," ");
@@ -46,10 +46,10 @@ function CLKGOTO() {
needcompile = 4;
y = needcompile;
}
- this.model.opar = list(new ScilabDouble(this.tag));
- this.model.ipar = new ScilabDouble(this.tagvis);
- this.model.evtin = new ScilabDouble(1);
- this.model.firing = new ScilabDouble(-1);
+ this.model.opar = list(new ScilabDouble([this.tag]));
+ this.model.ipar = new ScilabDouble([this.tagvis]);
+ this.model.evtin = new ScilabDouble([1]);
+ this.model.firing = new ScilabDouble([-1]);
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;