summaryrefslogtreecommitdiff
path: root/js/NonLinear/TrigFun.js
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/NonLinear/TrigFun.js
parent4d1e8bb193a7315a8fcfe1e09c33befdee660b7d (diff)
downloadsci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.gz
sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.bz2
sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.zip
handle empty array in comparison
Diffstat (limited to 'js/NonLinear/TrigFun.js')
-rw-r--r--js/NonLinear/TrigFun.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/NonLinear/TrigFun.js b/js/NonLinear/TrigFun.js
index 97b73bf3..776e2309 100644
--- a/js/NonLinear/TrigFun.js
+++ b/js/NonLinear/TrigFun.js
@@ -28,7 +28,7 @@ function TrigFun() {
if (!ok) {
break;
}
- if (find(PREVAR_FF==this.fun)==[]) {
+ if (find(PREVAR_FF==this.fun).length==0) {
message("Sorry but "+this.fun+" is not in the list!");
throw "user error";
} else {