summaryrefslogtreecommitdiff
path: root/js/Electrical/VsourceAC.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/VsourceAC.js')
-rw-r--r--js/Electrical/VsourceAC.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Electrical/VsourceAC.js b/js/Electrical/VsourceAC.js
index 549b2b5e..69149d14 100644
--- a/js/Electrical/VsourceAC.js
+++ b/js/Electrical/VsourceAC.js
@@ -34,12 +34,12 @@ function VsourceAC() {
return options;
}
VsourceAC.prototype.set = function VsourceAC() {
- this.VA = parseFloat(arguments[0]["VA"])
- this.FR = parseFloat(arguments[0]["FR"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.VA,this.FR,this.exprs] = scicos_getvalue("Set voltage source parameter",["Amplitude (Volt)","Frequency (Hz)"],list("vec",-1,"vec",-1),this.exprs);
+ var ok = true;
+ this.VA = parseFloat(arguments[0]["VA"]);
+ this.FR = parseFloat(arguments[0]["FR"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}