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/IntegerOp/BITCLEAR.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/IntegerOp/BITCLEAR.js') diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js index 812312a1..b8d7ef79 100644 --- a/js/IntegerOp/BITCLEAR.js +++ b/js/IntegerOp/BITCLEAR.js @@ -28,12 +28,12 @@ function BITCLEAR() { return options; } BITCLEAR.prototype.set = function BITCLEAR() { - this.Datatype = arguments[0]["Datatype"] - this.bit = parseFloat(arguments[0]["bit"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; while (true) { - [ok,this.Datatype,this.bit,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","BITCLEAR")],[" "],["Clear a bit"],[" "]],[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),"Index of Bit (0 is least significant)"],list("vec",1,"vec",1),this.exprs); + var ok = true; + this.Datatype = arguments[0]["Datatype"]; + this.bit = parseFloat(arguments[0]["bit"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } -- cgit