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 92885da..11ec706 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); };