changeset 2785:d8c36948f2b7

Minor JSHint issues #138
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Sat, 22 Apr 2017 17:28:22 +0100
parents fc22f93a00da
children a41a299223ab
files js/core.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Fri Apr 21 16:27:57 2017 +0100
+++ b/js/core.js	Sat Apr 22 17:28:22 2017 +0100
@@ -3017,11 +3017,11 @@
         imageController.root.appendChild(imageController.img);
         imageController.setImage = function (src) {
             imageController.img.src = "";
-            if (typeof src !== "string" || src.length == undefined) {
+            if (typeof src !== "string" || src.length === undefined) {
                 return;
             }
             imageController.img.src = src;
-        }
+        };
         return imageController;
     })();