fix syntax for foundFlashCamera function
authorRobert Kaiser <kairo@kairo.at>
Sun, 8 Feb 2015 22:06:21 +0000 (23:06 +0100)
committerRobert Kaiser <kairo@kairo.at>
Sun, 8 Feb 2015 22:06:21 +0000 (23:06 +0100)
js/tricorder.js

index 92885dae4b231310554f4ee36c8795553ba6ac6c..11ec7062bb0e2d4174aef8cf3562089ac3f9d1be 100644 (file)
@@ -340,7 +340,7 @@ var gModEnv = {
       document.getElementById("envFlashAvail").style.display = "none";
     }
   },
-  foundFlashCamera(aCamera) {
+  foundFlashCamera: function(aCamera) {
     this.flashCamera = aCamera;
     document.getElementById("envFlashOn").onclick = function() { console.log("on"); gModEnv.switchFlashlight(true); };
     document.getElementById("envFlashOff").onclick = function() { console.log("off"); gModEnv.switchFlashlight(false); };