From 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 16 Jul 2018 18:13:55 +0530 Subject: move the options in the loop --- js/Sources/GENSQR_f.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/Sources/GENSQR_f.js') diff --git a/js/Sources/GENSQR_f.js b/js/Sources/GENSQR_f.js index 7c09ea48..874e820d 100644 --- a/js/Sources/GENSQR_f.js +++ b/js/Sources/GENSQR_f.js @@ -26,14 +26,14 @@ function GENSQR_f() { return options; } GENSQR_f.prototype.set = function GENSQR_f() { - this.Amplitude = parseFloat(arguments[0]["Amplitude"]) - this.exprs = parseFloat(arguments[0]["exprs"]) this.exprs = this.graphics.exprs; if (size(this.exprs,"*")==2) { this.exprs = this.exprs[2-1]; } while (true) { - [ok,this.Amplitude,this.exprs] = scicos_getvalue(["Set Square generator block parameters"],["Amplitude"],list("vec",1),this.exprs); + var ok = true; + this.Amplitude = parseFloat(arguments[0]["Amplitude"]); + this.exprs = parseFloat(arguments[0]["exprs"]); if (!ok) { break; } -- cgit