From 44a3807a94783e831070f0e003340af58dc64d16 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 11 Jul 2018 17:51:05 +0530 Subject: change graphics to object --- js/Sinks/CLKOUT_f.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/Sinks/CLKOUT_f.js') diff --git a/js/Sinks/CLKOUT_f.js b/js/Sinks/CLKOUT_f.js index 0aecca3f..e94f0ce3 100644 --- a/js/Sinks/CLKOUT_f.js +++ b/js/Sinks/CLKOUT_f.js @@ -24,9 +24,9 @@ function CLKOUT_f() { CLKOUT_f.prototype.set = function CLKOUT_f() { this.prt = parseFloat(arguments[0]["prt"]) this.x = arg1; - var graphics = arg1.graphics; + this.graphics = arg1.graphics; this.model = arg1.model; - var exprs = graphics.exprs; + var exprs = this.graphics.exprs; var exprs = exprs[1-1]; while (true) { [ok,this.prt,exprs] = scicos_getvalue("Set Event Output block parameters","Port number",list("vec",1),exprs); @@ -40,8 +40,8 @@ function CLKOUT_f() { this.model.ipar = new ScilabDouble([this.prt]); this.model.evtin = new ScilabDouble([1]); this.model.firing = new ScilabDouble([]); - graphics.exprs = exprs; - this.x.graphics = graphics; + this.graphics.exprs = new ScilabDouble([exprs]); + this.x.graphics = this.graphics; this.x.model = this.model; break; } -- cgit