diff js/core.js @ 3095:20de79c56ad7

JSHinted Dev_main
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 12 Jan 2018 16:39:39 +0000
parents 30ba1b9ed867
children cd34732a2e39
line wrap: on
line diff
--- a/js/core.js	Fri Jan 12 16:11:20 2018 +0000
+++ b/js/core.js	Fri Jan 12 16:39:39 2018 +0000
@@ -2727,11 +2727,11 @@
         };
         this.resize();
         this.check = function () {
-            if (this.specification.mandatory && this.textArea.value.length == 0) {
+            if (this.specification.mandatory && this.textArea.value.length === 0) {
                 return false;
             }
             return true;
-        }
+        };
     };
 
     this.radioBox = function (commentQuestion) {
@@ -2810,11 +2810,11 @@
             var anyChecked = this.options.some(function (a) {
                 return a.checked;
             });
-            if (this.specification.mandatory && anyChecked == false) {
+            if (this.specification.mandatory && anyChecked === false) {
                 return false;
             }
             return true;
-        }
+        };
         this.resize();
     };
 
@@ -2885,7 +2885,7 @@
             var anyChecked = this.options.some(function (a) {
                 return a.checked;
             });
-            if (this.specification.mandatory && anyChecked == false) {
+            if (this.specification.mandatory && anyChecked === false) {
                 return false;
             }
             return true;
@@ -2949,7 +2949,7 @@
         };
         this.check = function () {
             return true;
-        }
+        };
         this.resize();
     };
 
@@ -2974,16 +2974,16 @@
 
     this.checkCommentQuestions = function () {
         var errored = this.commentQuestions.reduce(function (a, cq) {
-            if (cq.check() == false) {
+            if (cq.check() === false) {
                 a.push(cq);
             }
             return a;
         }, []);
-        if (errored.length == 0) {
+        if (errored.length === 0) {
             return true;
         }
         interfaceContext.lightbox.post("Message", "Not all the mandatory comment boxes below have been filled.");
-    }
+    };
 
     this.outsideReferenceDOM = function (audioObject, index, inject) {
         this.parent = audioObject;