From 0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 18 Jun 2018 17:08:56 +0530 Subject: change order of functions --- js/Electrical/Resistor.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'js/Electrical/Resistor.js') diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js index 402732ca..ab9bd491 100644 --- a/js/Electrical/Resistor.js +++ b/js/Electrical/Resistor.js @@ -1,25 +1,5 @@ /* autogenerated from "macros/Electrical/Resistor.sci" */ function Resistor() { -Resistor.prototype.get = function Resistor() { -} -Resistor.prototype.set = function Resistor() { -x=arg1; -graphics=arg1.graphics; -exprs=graphics.exprs; -model=arg1.model; -while (true) { -[ok,R,exprs]=scicos_getvalue("Set Resistor block parameter","R (ohm)",list("vec",1),exprs); -if (!ok) { -break -} -model.rpar=R; -model.equations.parameters[2-1]=list(R); -graphics.exprs=exprs; -x.graphics=graphics; -x.model=model; -break -} -} Resistor.prototype.define = function Resistor() { model=scicos_model(); R=0.01; @@ -43,4 +23,24 @@ x.graphics.out_implicit=["I"]; } Resistor.prototype.details = function Resistor() { } +Resistor.prototype.get = function Resistor() { +} +Resistor.prototype.set = function Resistor() { +x=arg1; +graphics=arg1.graphics; +exprs=graphics.exprs; +model=arg1.model; +while (true) { +[ok,R,exprs]=scicos_getvalue("Set Resistor block parameter","R (ohm)",list("vec",1),exprs); +if (!ok) { +break +} +model.rpar=R; +model.equations.parameters[2-1]=list(R); +graphics.exprs=exprs; +x.graphics=graphics; +x.model=model; +break +} +} } -- cgit