summaryrefslogtreecommitdiff
path: root/js/NonLinear/TrigFun.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/NonLinear/TrigFun.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/NonLinear/TrigFun.js')
-rw-r--r--js/NonLinear/TrigFun.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/NonLinear/TrigFun.js b/js/NonLinear/TrigFun.js
index a3857b52..78f23521 100644
--- a/js/NonLinear/TrigFun.js
+++ b/js/NonLinear/TrigFun.js
@@ -21,13 +21,13 @@ function TrigFun() {
return options;
}
TrigFun.prototype.set = function TrigFun() {
- this.fun = arguments[0]["fun"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
var PREVAR_FF = [["sin"],["cos"],["tan"],["asin"],["acos"],["atan"],["sinh"],["cosh"],["tanh"],["asinh"],["acosh"],["atanh"]];
var PREVAR_GG = [["Choose among "+strcat(PREVAR_FF.slice(1-1,4),", ")],[strcat(PREVAR_FF.slice(5-1,$),", ")]];
while (true) {
- [ok,this.fun,this.exprs] = scicos_getvalue(PREVAR_GG,"Function",list("str",1),this.exprs);
+ var ok = true;
+ this.fun = arguments[0]["fun"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}