summaryrefslogtreecommitdiff
path: root/js/Misc/MEMORY_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/MEMORY_f.js')
-rw-r--r--js/Misc/MEMORY_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Misc/MEMORY_f.js b/js/Misc/MEMORY_f.js
index 06169838..8edcc38f 100644
--- a/js/Misc/MEMORY_f.js
+++ b/js/Misc/MEMORY_f.js
@@ -3,7 +3,7 @@ function MEMORY_f() {
MEMORY_f.prototype.define = function MEMORY_f() {
var z = 0;
var in1 = 1;
- this.exprs = [[string(z)],[string(1)]];
+ var exprs = [[string(z)],[string(1)]];
this.model = scicos_model();
this.model.sim = new ScilabString(["memo"]);
this.model.in = new ScilabDouble([in1]);
@@ -13,8 +13,8 @@ function MEMORY_f() {
this.model.rpar = new ScilabDouble([z]);
this.model.blocktype = new ScilabString(["m"]);
this.model.dep_ut = new ScilabBoolean([false,false]);
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MEMORY_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MEMORY_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
MEMORY_f.prototype.details = function MEMORY_f() {
@@ -28,7 +28,7 @@ function MEMORY_f() {
return options;
}
MEMORY_f.prototype.set = function MEMORY_f() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.a = arguments[0]["a"];
@@ -52,7 +52,7 @@ function MEMORY_f() {
}
var in1 = out;
if (ok) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.rpar = new ScilabDouble([this.a]);
this.model.in = new ScilabDouble([in1]);
this.model.out = new ScilabDouble([out]);