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/Sinks/CFSCOPE.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/Sinks/CFSCOPE.js')
-rw-r--r-- | js/Sinks/CFSCOPE.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Sinks/CFSCOPE.js b/js/Sinks/CFSCOPE.js index 57294d55..928fb538 100644 --- a/js/Sinks/CFSCOPE.js +++ b/js/Sinks/CFSCOPE.js @@ -88,10 +88,10 @@ function CFSCOPE() { throw "user error"; } if (ok) { - if (this.wpos==[]) { + if (this.wpos.length==0) { this.wpos = [[-1],[-1]]; } - if (this.wdim==[]) { + if (this.wdim.length==0) { this.wdim = [[-1],[-1]]; } var rpar = [[0],[this.ymin],[this.ymax],[this.per]]; |