diff options
author | Sunil Shetye | 2018-07-18 16:28:24 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 17:07:40 +0530 |
commit | 975ae6706b4ac868425193cf25bcbbb268051b5d (patch) | |
tree | a08dfa09d5fa0ce9892b3aba84f7420cebc4f532 /js/Misc/DSUPER.js | |
parent | 4d1e8bb193a7315a8fcfe1e09c33befdee660b7d (diff) | |
download | sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.gz sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.bz2 sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.zip |
handle empty array in comparison
Diffstat (limited to 'js/Misc/DSUPER.js')
-rw-r--r-- | js/Misc/DSUPER.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Misc/DSUPER.js b/js/Misc/DSUPER.js index aefaa9fa..96fc3fc9 100644 --- a/js/Misc/DSUPER.js +++ b/js/Misc/DSUPER.js @@ -19,7 +19,7 @@ function DSUPER() { var exprs0 = this.graphics.exprs[2-1][1-1]; var btitre = this.graphics.exprs[2-1][2-1][1-1]; var bitems = this.graphics.exprs[2-1][2-1].slice(2-1,$); - if (exprs0==[]) { + if (exprs0.length==0) { return; } var tmpvar0 = script2var(context,PREVAR_scicos_context); |