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/Sources/STEP.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'js/Sources/STEP.js') diff --git a/js/Sources/STEP.js b/js/Sources/STEP.js index 0841a09d..c3c6533d 100644 --- a/js/Sources/STEP.js +++ b/js/Sources/STEP.js @@ -1,5 +1,24 @@ /* autogenerated from "macros/Sources/STEP.sci" */ function STEP() { +STEP.prototype.define = function STEP() { +rpar=[0,1]; +model=scicos_model(); +model.sim=list("step_func",4); +model.evtin=1; +model.evtout=1; +model.out=1; +model.out2=1; +model.outtyp=1; +model.firing=1; +model.rpar=rpar; +model.blocktype="c"; +model.dep_ut=[false,false]; +exprs=[string(1),string(rpar)]; +gr_i=[]; +x=standard_define([2,2],model,exprs,gr_i); +} +STEP.prototype.details = function STEP() { +} STEP.prototype.get = function STEP() { } STEP.prototype.set = function STEP() { @@ -44,23 +63,4 @@ break } } } -STEP.prototype.define = function STEP() { -rpar=[0,1]; -model=scicos_model(); -model.sim=list("step_func",4); -model.evtin=1; -model.evtout=1; -model.out=1; -model.out2=1; -model.outtyp=1; -model.firing=1; -model.rpar=rpar; -model.blocktype="c"; -model.dep_ut=[false,false]; -exprs=[string(1),string(rpar)]; -gr_i=[]; -x=standard_define([2,2],model,exprs,gr_i); -} -STEP.prototype.details = function STEP() { -} } -- cgit