summaryrefslogtreecommitdiff
path: root/details.js
diff options
context:
space:
mode:
authorASP12342016-06-23 12:36:03 +0000
committerASP12342016-06-23 12:36:03 +0000
commit15f1a0829a9158f7ab1b2efbc19ddd3366828888 (patch)
tree6615ae5f49653b61a52abe9ed67ca616c78c11e4 /details.js
parent8b9b38696d89e6706995cf3c55f85d254834ce24 (diff)
downloadxcos-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.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/details.js b/details.js
index 3f612cb..57a5f44 100644
--- a/details.js
+++ b/details.js
@@ -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) {