summaryrefslogtreecommitdiff
path: root/js/Events
diff options
context:
space:
mode:
authorSunil Shetye2018-07-18 16:28:24 +0530
committerSunil Shetye2018-07-18 17:07:40 +0530
commit975ae6706b4ac868425193cf25bcbbb268051b5d (patch)
treea08dfa09d5fa0ce9892b3aba84f7420cebc4f532 /js/Events
parent4d1e8bb193a7315a8fcfe1e09c33befdee660b7d (diff)
downloadsci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.gz
sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.bz2
sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.zip
handle empty array in comparison
Diffstat (limited to 'js/Events')
-rw-r--r--js/Events/IFTHEL_f.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Events/IFTHEL_f.js b/js/Events/IFTHEL_f.js
index 3a2d4287..30d8eada 100644
--- a/js/Events/IFTHEL_f.js
+++ b/js/Events/IFTHEL_f.js
@@ -30,7 +30,7 @@ function IFTHEL_f() {
}
IFTHEL_f.prototype.set = function IFTHEL_f() {
this.exprs = this.graphics.exprs;
- if (this.exprs==[]) {
+ if (this.exprs.length==0) {
this.exprs = string(1);
}
if (size(this.exprs,"*")==1) {