diff options
author | Sunil Shetye | 2018-06-16 08:23:15 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-16 08:23:15 +0530 |
commit | 58c3b670390b278ee45a4b45ccb36a949ad582eb (patch) | |
tree | 722ea570b5703195e4fdbf84c7410776177cc70f /js/Sources/IN_f.js | |
parent | 4a602cc59c9bc5a888e50caa40776e4fb5e7b852 (diff) | |
download | sci2js-58c3b670390b278ee45a4b45ccb36a949ad582eb.tar.gz sci2js-58c3b670390b278ee45a4b45ccb36a949ad582eb.tar.bz2 sci2js-58c3b670390b278ee45a4b45ccb36a949ad582eb.zip |
make exprs an array by default
Diffstat (limited to 'js/Sources/IN_f.js')
-rw-r--r-- | js/Sources/IN_f.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Sources/IN_f.js b/js/Sources/IN_f.js index d9ca87b1..2099e960 100644 --- a/js/Sources/IN_f.js +++ b/js/Sources/IN_f.js @@ -8,10 +8,10 @@ graphics=arg1.graphics; model=arg1.model; exprs=graphics.exprs; if (size(exprs,"*")==2) { -exprs=exprs(1); +exprs=exprs[1-1]; } if (size(exprs,"*")==1) { -exprs=[exprs(1),"[-1 -2]","-1"]; +exprs=[exprs[1-1],"[-1 -2]","-1"]; } while (true) { [ok,prt,otsz,ot,exprs]=getvalue(_("Set Input block parameters"),[_("Port number"),_("Outport size ([-1 -2] for inherit)"),_("Outport Type (-1 for inherit)")],list("vec",1,"vec",-1,"vec",1),exprs); |