summaryrefslogtreecommitdiff
path: root/js/NonLinear/LOGBLK_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-08-24 11:46:02 +0530
committerSunil Shetye2018-08-27 16:43:40 +0530
commit3386d0d537a498adce65f313aacb7ca4a147a4d2 (patch)
treedc8b98c70c10cec2c9f3f37b5858e1afd6554698 /js/NonLinear/LOGBLK_f.js
parent9fee9bd7e5e356e872c7a539d4a6cfa89cae593c (diff)
downloadsci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.gz
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.bz2
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.zip
remove exprs and gr_i from default global list
Diffstat (limited to 'js/NonLinear/LOGBLK_f.js')
-rw-r--r--js/NonLinear/LOGBLK_f.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/NonLinear/LOGBLK_f.js b/js/NonLinear/LOGBLK_f.js
index aa223ced..61a8a54c 100644
--- a/js/NonLinear/LOGBLK_f.js
+++ b/js/NonLinear/LOGBLK_f.js
@@ -10,9 +10,9 @@ function LOGBLK_f() {
this.model.rpar = new ScilabDouble([this.a]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([true,false]);
- this.exprs = "%e";
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGBLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([this.exprs]),this.gr_i);
+ var exprs = "%e";
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGBLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([exprs]),gr_i);
return new BasicBlock(this.x);
}
LOGBLK_f.prototype.details = function LOGBLK_f() {
@@ -25,9 +25,9 @@ function LOGBLK_f() {
return options;
}
LOGBLK_f.prototype.set = function LOGBLK_f() {
- this.exprs = this.graphics.exprs;
- if (size(this.exprs,"*")==2) {
- this.exprs = this.exprs[2-1];
+ var exprs = this.graphics.exprs;
+ if (size(exprs,"*")==2) {
+ var exprs = exprs[2-1];
}
while (true) {
var ok = true;
@@ -40,7 +40,7 @@ function LOGBLK_f() {
throw "user error";
} else {
if (ok) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.rpar = new ScilabDouble([this.a]);
this.x.graphics = this.graphics;
this.x.model = this.model;