summaryrefslogtreecommitdiff
path: root/js/Branching/FROM.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 13:05:13 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commit079d0b4a3ec15a4d7d2644484d116df9d1c694bb (patch)
tree785ed59b5b238203a9e91f3e323da59d1083d86e /js/Branching/FROM.js
parent0e9bc36f45fa1bb598c6ebb0febc1989439a8d98 (diff)
downloadsci2js-079d0b4a3ec15a4d7d2644484d116df9d1c694bb.tar.gz
sci2js-079d0b4a3ec15a4d7d2644484d116df9d1c694bb.tar.bz2
sci2js-079d0b4a3ec15a4d7d2644484d116df9d1c694bb.zip
fix assignment to list
Diffstat (limited to 'js/Branching/FROM.js')
-rw-r--r--js/Branching/FROM.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Branching/FROM.js b/js/Branching/FROM.js
index 49334ffd..edb2d8b7 100644
--- a/js/Branching/FROM.js
+++ b/js/Branching/FROM.js
@@ -13,8 +13,8 @@ function FROM() {
this.model.opar = list(new ScilabString(["A"]));
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [false,false];
- exprs = ["A"];
- gr_i = [];
+ var exprs = ["A"];
+ var gr_i = [];
this.x = standard_define([2,1],this.model,exprs,gr_i);
this.x.graphics.id = "From";
return new BasicBlock(this.x);
@@ -31,8 +31,8 @@ function FROM() {
FROM.prototype.set = function FROM() {
this.tag = arguments[0]["tag"]
this.x = arg1;
- graphics = arg1.graphics;
- exprs = graphics.exprs;
+ var graphics = arg1.graphics;
+ var exprs = graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs);
@@ -41,8 +41,8 @@ function FROM() {
}
if (ok) {
if (this.model.opar!=list(this.tag)) {
- needcompile = 4;
- y = needcompile;
+ var needcompile = 4;
+ var y = needcompile;
}
graphics.exprs = exprs;
this.model.opar = list(new ScilabDouble([this.tag]));