diff options
author | ASP1234 | 2016-06-23 12:36:03 +0000 |
---|---|---|
committer | ASP1234 | 2016-06-23 12:36:03 +0000 |
commit | 15f1a0829a9158f7ab1b2efbc19ddd3366828888 (patch) | |
tree | 6615ae5f49653b61a52abe9ed67ca616c78c11e4 /details.js | |
parent | 8b9b38696d89e6706995cf3c55f85d254834ce24 (diff) | |
download | xcos-on-web-15f1a0829a9158f7ab1b2efbc19ddd3366828888.tar.gz xcos-on-web-15f1a0829a9158f7ab1b2efbc19ddd3366828888.tar.bz2 xcos-on-web-15f1a0829a9158f7ab1b2efbc19ddd3366828888.zip |
Implement CBLOCK4 Block
Diffstat (limited to 'details.js')
-rw-r--r-- | details.js | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -549,7 +549,17 @@ function BasicBlock() { } function sci2exp(c) { - if(typeof c.length === "undefined") { + if(c.scilabClass == "ScilabList") { + c = Object.create(c); + c.scilabClass = ""; + if(c.length) { + return "list(" + sci2exp(c) + ")"; + } + else { + return "list()"; + } + } + else if(typeof c.length === "undefined") { return c.toString(); } else if (c.length == 0) { |