diff options
author | Sunil Shetye | 2018-08-24 17:24:01 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-08-27 16:43:40 +0530 |
commit | 5cffbe3aa309e242255b96fe954688c6f1380811 (patch) | |
tree | 188788c4003a454783b7b06c667d521dc925dcc6 /js/Sources/GEN_SQR.js | |
parent | 249d7545a79bcc66003a80ca393994feb40c5f34 (diff) | |
download | sci2js-5cffbe3aa309e242255b96fe954688c6f1380811.tar.gz sci2js-5cffbe3aa309e242255b96fe954688c6f1380811.tar.bz2 sci2js-5cffbe3aa309e242255b96fe954688c6f1380811.zip |
check for root of variable in global and local lists
check for variable in var type list
Diffstat (limited to 'js/Sources/GEN_SQR.js')
-rw-r--r-- | js/Sources/GEN_SQR.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Sources/GEN_SQR.js b/js/Sources/GEN_SQR.js index 6f06ae0f..62b33975 100644 --- a/js/Sources/GEN_SQR.js +++ b/js/Sources/GEN_SQR.js @@ -70,7 +70,7 @@ function GEN_SQR() { var Exprs0 = [["Amin"],["Amax"],["rule"],["F"]]; this.Bitems = [["Minimum Value"],["Maximum Value"],["Initial Value( 1= Minimum Value 2= Maximum Value)"],["Period (sec)"]]; var Ss = list("mat",[-1,-1],"mat",[-1,-1],"pol",-1,"pol",-1); - var scicos_context = struct(); + this.scicos_context = struct(); var ok = false; while (!ok) { var ok = true; @@ -81,7 +81,7 @@ function GEN_SQR() { if (!ok) { return; } - var PREVAR_scicos_context = scicos_context; + var PREVAR_scicos_context = this.scicos_context; var sblock = this.x.model.rpar; var tmpvar0 = script2var(sblock.props.context,PREVAR_scicos_context); var PREVAR_scicos_context = tmpvar0[0]; |