summaryrefslogtreecommitdiff
path: root/js/Linear/SUMMATION.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/Linear/SUMMATION.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Linear/SUMMATION.js')
-rw-r--r--js/Linear/SUMMATION.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/SUMMATION.js b/js/Linear/SUMMATION.js
index 905cc973..11251563 100644
--- a/js/Linear/SUMMATION.js
+++ b/js/Linear/SUMMATION.js
@@ -28,10 +28,6 @@ function SUMMATION() {
return options;
}
SUMMATION.prototype.set = function SUMMATION() {
- this.Datatype = arguments[0]["Datatype"]
- this.sgn = inverse(arguments[0]["sgn"])
- this.satur = arguments[0]["satur"]
- this.exprs = inverse(arguments[0]["exprs"])
this.exprs = this.graphics.exprs;
if (size(this.exprs,1)==1) {
this.exprs = [[sci2exp(1)],[this.exprs],[sci2exp(0)]];
@@ -39,7 +35,11 @@ function SUMMATION() {
this.exprs = [[this.exprs],[sci2exp(0)]];
}
while (true) {
- [ok,this.Datatype,this.sgn,this.satur,this.exprs] = scicos_getvalue("Set sum block parameters",["Datatype (1=real double 2=complex 3=int32 ...)","Number of inputs or sign vector (of +1, -1)","Do on Overflow(0=Nothing 1=Saturate 2=Error)"],list("vec",1,"vec",-1,"vec",1),this.exprs);
+ var ok = true;
+ this.Datatype = arguments[0]["Datatype"];
+ this.sgn = inverse(arguments[0]["sgn"]);
+ this.satur = arguments[0]["satur"];
+ this.exprs = inverse(arguments[0]["exprs"]);
if (!ok) {
break;
}