summaryrefslogtreecommitdiff
path: root/js/Electrical/Capacitor.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/Electrical/Capacitor.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Electrical/Capacitor.js')
-rw-r--r--js/Electrical/Capacitor.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Electrical/Capacitor.js b/js/Electrical/Capacitor.js
index a890eedf..af4e2829 100644
--- a/js/Electrical/Capacitor.js
+++ b/js/Electrical/Capacitor.js
@@ -34,12 +34,12 @@ function Capacitor() {
return options;
}
Capacitor.prototype.set = function Capacitor() {
- this.C = parseFloat(arguments[0]["C"])
- this.v = parseFloat(arguments[0]["v"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.C,this.v,this.exprs] = scicos_getvalue("Set Capacitor block parameter",["C (F)","Initial Voltage"],list("vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.C = parseFloat(arguments[0]["C"]);
+ this.v = parseFloat(arguments[0]["v"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}