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/PULSE_SC.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/Sources/PULSE_SC.js') diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index 6ec87ef7..6b91077a 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -54,11 +54,6 @@ function PULSE_SC() { return options; } PULSE_SC.prototype.set = function PULSE_SC() { - scicos_context.E = arguments[0]["scicos_context.E"] - scicos_context.W = arguments[0]["scicos_context.W"] - scicos_context.F = arguments[0]["scicos_context.F"] - scicos_context.A = arguments[0]["scicos_context.A"] - this.exprs = arguments[0]["exprs"] var y = this.needcompile; var typ = list(); this.exprs = this.graphics.exprs; @@ -69,7 +64,12 @@ function PULSE_SC() { var scicos_context = struct(); var ok = false; while (!ok) { - [ok,scicos_context.E,scicos_context.W,scicos_context.F,scicos_context.A,this.exprs] = scicos_getvalue(Btitre,Bitems,Ss,this.exprs); + var ok = true; + scicos_context.E = arguments[0]["scicos_context.E"]; + scicos_context.W = arguments[0]["scicos_context.W"]; + scicos_context.F = arguments[0]["scicos_context.F"]; + scicos_context.A = arguments[0]["scicos_context.A"]; + this.exprs = arguments[0]["exprs"]; if (!ok) { return; } -- cgit