summaryrefslogtreecommitdiff
path: root/js/Branching/EXTRACTOR.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 15:19:38 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commit0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch)
tree36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/Branching/EXTRACTOR.js
parent079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff)
downloadsci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip
support vector also
Diffstat (limited to 'js/Branching/EXTRACTOR.js')
-rw-r--r--js/Branching/EXTRACTOR.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Branching/EXTRACTOR.js b/js/Branching/EXTRACTOR.js
index 8eeeb581..f08a5f15 100644
--- a/js/Branching/EXTRACTOR.js
+++ b/js/Branching/EXTRACTOR.js
@@ -7,7 +7,7 @@ function EXTRACTOR() {
this.model.in1 = new ScilabDouble([-1]);
this.model.out = new ScilabDouble([1]);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
this.model.ipar = new ScilabDouble([this.ind]);
var exprs = [sci2exp(this.ind)];
var gr_i = [];
@@ -41,7 +41,7 @@ function EXTRACTOR() {
var graphics = tmpvar0[1]
var ok = tmpvar0[2];
if (ok) {
- this.model.ipar = this.ind;
+ this.model.ipar = new ScilabDouble(this.ind);
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;