Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 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 | 80c95ab21220 |
children | 3c14e0b6c9ff |
comparison
equal
deleted
inserted
replaced
2784:fc22f93a00da | 2785:d8c36948f2b7 |
---|---|
3015 imageController.root.id = "imageController"; | 3015 imageController.root.id = "imageController"; |
3016 imageController.img = document.createElement("img"); | 3016 imageController.img = document.createElement("img"); |
3017 imageController.root.appendChild(imageController.img); | 3017 imageController.root.appendChild(imageController.img); |
3018 imageController.setImage = function (src) { | 3018 imageController.setImage = function (src) { |
3019 imageController.img.src = ""; | 3019 imageController.img.src = ""; |
3020 if (typeof src !== "string" || src.length == undefined) { | 3020 if (typeof src !== "string" || src.length === undefined) { |
3021 return; | 3021 return; |
3022 } | 3022 } |
3023 imageController.img.src = src; | 3023 imageController.img.src = src; |
3024 } | 3024 }; |
3025 return imageController; | 3025 return imageController; |
3026 })(); | 3026 })(); |
3027 | 3027 |
3028 this.calibrationModuleObject = null; | 3028 this.calibrationModuleObject = null; |
3029 this.calibrationModule = function () { | 3029 this.calibrationModule = function () { |