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/NonLinear/COSBLK_f.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/NonLinear/COSBLK_f.js') diff --git a/js/NonLinear/COSBLK_f.js b/js/NonLinear/COSBLK_f.js index 5420afd1..f39985a3 100644 --- a/js/NonLinear/COSBLK_f.js +++ b/js/NonLinear/COSBLK_f.js @@ -10,6 +10,7 @@ function COSBLK_f() { model.dep_ut = [true,false]; gr_i = []; this.x = standard_define([2,2],model,[],gr_i); + return new BasicBlock(this.x); } COSBLK_f.prototype.details = function COSBLK_f() { return this.x; @@ -18,5 +19,6 @@ function COSBLK_f() { } COSBLK_f.prototype.set = function COSBLK_f() { this.x = arg1; + return new BasicBlock(this.x); } } -- cgit