summaryrefslogtreecommitdiff
path: root/js/Sources/CONST_f.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/Sources/CONST_f.js
parent0e9bc36f45fa1bb598c6ebb0febc1989439a8d98 (diff)
downloadsci2js-079d0b4a3ec15a4d7d2644484d116df9d1c694bb.tar.gz
sci2js-079d0b4a3ec15a4d7d2644484d116df9d1c694bb.tar.bz2
sci2js-079d0b4a3ec15a4d7d2644484d116df9d1c694bb.zip
fix assignment to list
Diffstat (limited to 'js/Sources/CONST_f.js')
-rw-r--r--js/Sources/CONST_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/CONST_f.js b/js/Sources/CONST_f.js
index ad63477d..cb76e0fb 100644
--- a/js/Sources/CONST_f.js
+++ b/js/Sources/CONST_f.js
@@ -9,8 +9,8 @@ function CONST_f() {
this.model.rpar = new ScilabDouble([this.C]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = [false,false];
- exprs = strcat(sci2exp(this.C));
- gr_i = [];
+ var exprs = strcat(sci2exp(this.C));
+ var gr_i = [];
this.x = standard_define([2,2],this.model,exprs,gr_i);
return new BasicBlock(this.x);
}
@@ -25,15 +25,15 @@ function CONST_f() {
CONST_f.prototype.set = function CONST_f() {
this.C = parseFloat(arguments[0]["C"])
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.C,exprs] = scicos_getvalue(["Set Contant Block"],"Constant",list("vec",-1),exprs);
if (!ok) {
break;
}
- nout = size(this.C,"*");
+ var nout = size(this.C,"*");
if (nout==0) {
message("C must have at least one element");
} else {