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/BOUNCE.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/Misc/BOUNCE.js') diff --git a/js/Misc/BOUNCE.js b/js/Misc/BOUNCE.js index 1689f888..a9558881 100644 --- a/js/Misc/BOUNCE.js +++ b/js/Misc/BOUNCE.js @@ -36,6 +36,7 @@ function BOUNCE() { exprs = [[strcat(sci2exp(rpar1))],[strcat(sci2exp(rpar2))],[strcat(sci2exp(walls))],[strcat(sci2exp(this.x))],[strcat(sci2exp(xd))],[strcat(sci2exp(y))],[strcat(sci2exp(yd))]]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } BOUNCE.prototype.details = function BOUNCE() { return this.x; @@ -104,5 +105,6 @@ function BOUNCE() { break; } } + return new BasicBlock(this.x); } } -- cgit