From f19304a4fe99556c5ddc35024c818d00ffe7e23a Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 9 Jul 2018 17:07:46 +0530 Subject: handle list separately --- js/Electrical/Switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/Electrical/Switch.js') diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js index 3eafb101..524b91d6 100644 --- a/js/Electrical/Switch.js +++ b/js/Electrical/Switch.js @@ -47,7 +47,7 @@ function Switch() { if (!ok) { break; } - this.model.equations.parameters[('2', 'double')] = list(this.Ron,this.Roff); + this.model.equations.parameters[2] = list(new ScilabDouble(this.Ron),new ScilabDouble(this.Roff)); graphics.exprs = exprs; this.x.graphics = graphics; this.x.model = this.model; -- cgit