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/Electrical/IdealTransformer.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/Electrical/IdealTransformer.js')
-rw-r--r-- | js/Electrical/IdealTransformer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Electrical/IdealTransformer.js b/js/Electrical/IdealTransformer.js index 2d7284b9..9444a558 100644 --- a/js/Electrical/IdealTransformer.js +++ b/js/Electrical/IdealTransformer.js @@ -59,12 +59,12 @@ function IdealTransformer() { return options; } IdealTransformer.prototype.set = function IdealTransformer() { - this.N = arguments[0]["N"] - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; this.exprs = this.x.graphics.exprs; while (true) { - [ok,this.N,this.exprs] = scicos_getvalue([["Set Transformer block parameters:"],[""],["N:"+" Turn ratio (N1/N2)"]],["N"],list("vec",1),this.exprs); + var ok = true; + this.N = arguments[0]["N"]; + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } |