diff options
author | Sunil Shetye | 2018-07-16 18:13:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 11:36:15 +0530 |
commit | 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch) | |
tree | 6b766b7c32effff12fa48cff99f11b9420136610 /js/IntegerOp/JKFLIPFLOP.js | |
parent | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff) | |
download | sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2 sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip |
move the options in the loop
Diffstat (limited to 'js/IntegerOp/JKFLIPFLOP.js')
-rw-r--r-- | js/IntegerOp/JKFLIPFLOP.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js index fefbe032..026a75ab 100644 --- a/js/IntegerOp/JKFLIPFLOP.js +++ b/js/IntegerOp/JKFLIPFLOP.js @@ -57,8 +57,6 @@ function JKFLIPFLOP() { return options; } JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { - this.init = parseFloat(arguments[0]["init"]) - this.exprs0 = arguments[0]["exprs0"] if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { var path = i; break; @@ -69,7 +67,9 @@ function JKFLIPFLOP() { this.model = xx.model; var init_old = this.model.odstate[1-1]; while (true) { - [ok,this.init,this.exprs0] = scicos_getvalue([[msprintf("Set %s block parameters","JKFLIPFLOP")],[" "],["JK flip-flop"],[" "],["The \'Initial Value\' must be 0 or 1 of type int8"],[" - Negative values are considered as int8(0)"],[" - Positive values are considered as int8(1)"],[" "]],"Initial Value",list("vec",1),this.exprs); + var ok = true; + this.init = parseFloat(arguments[0]["init"]); + this.exprs0 = arguments[0]["exprs0"]; if (!ok) { break; } |