summaryrefslogtreecommitdiff
path: root/js/Electrical/Inductor.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/Inductor.js')
-rw-r--r--js/Electrical/Inductor.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js
index e2efde59..0e4824fc 100644
--- a/js/Electrical/Inductor.js
+++ b/js/Electrical/Inductor.js
@@ -31,11 +31,11 @@ function Inductor() {
return options;
}
Inductor.prototype.set = function Inductor() {
- this.L = parseFloat(arguments[0]["L"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.L,this.exprs] = scicos_getvalue("Set Inductor block parameter","L (H)",list("vec",1),this.exprs);
+ var ok = true;
+ this.L = parseFloat(arguments[0]["L"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}