From afed64f1a0eab0b2d742088186d7bc340a2c895b Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Tue, 26 Jun 2018 12:08:19 +0530 Subject: return block type in define and set --- js/Misc/ENDBLK.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/Misc/ENDBLK.js') diff --git a/js/Misc/ENDBLK.js b/js/Misc/ENDBLK.js index ad60a07f..384c2020 100644 --- a/js/Misc/ENDBLK.js +++ b/js/Misc/ENDBLK.js @@ -7,6 +7,7 @@ function ENDBLK() { model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()); gr_i = []; this.x = standard_define([2,2],model,[],gr_i); + return new BasicBlock(this.x); } ENDBLK.prototype.details = function ENDBLK() { return this.x; @@ -81,5 +82,6 @@ function ENDBLK() { } this.x = arg1; typ = newpar; + return new BasicBlock(this.x); } } -- cgit