summaryrefslogtreecommitdiff
path: root/js/NonLinear/INTRP2BLK_f.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/INTRP2BLK_f.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/INTRP2BLK_f.js')
-rw-r--r--js/NonLinear/INTRP2BLK_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/NonLinear/INTRP2BLK_f.js b/js/NonLinear/INTRP2BLK_f.js
index 303cdffb..4dee61c9 100644
--- a/js/NonLinear/INTRP2BLK_f.js
+++ b/js/NonLinear/INTRP2BLK_f.js
@@ -29,13 +29,13 @@ function INTRP2BLK_f() {
return options;
}
INTRP2BLK_f.prototype.set = function INTRP2BLK_f() {
- this.a = inverse(arguments[0]["a"])
- this.b = inverse(arguments[0]["b"])
- this.c = inverse(arguments[0]["c"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.a,this.b,this.c,this.exprs] = scicos_getvalue("Set Interpolation block parameters",["X coord.","Y coord.","Z values"],list("vec",-1,"vec",-1,"mat",[-1,-1]),this.exprs);
+ var ok = true;
+ this.a = inverse(arguments[0]["a"]);
+ this.b = inverse(arguments[0]["b"]);
+ this.c = inverse(arguments[0]["c"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}