summaryrefslogtreecommitdiff
path: root/js/Linear/SUMMATION.js
diff options
context:
space:
mode:
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;
}