From: Robert Kaiser Date: Sun, 8 Feb 2015 22:06:21 +0000 (+0100) Subject: fix syntax for foundFlashCamera function X-Git-Tag: production~1 X-Git-Url: https://git-public.kairo.at/?p=tricorder.git;a=commitdiff_plain;h=b41c095bad1cb176864b6d8e25bcff50faf4634e fix syntax for foundFlashCamera function --- diff --git a/js/tricorder.js b/js/tricorder.js index 92885da..11ec706 100644 --- a/js/tricorder.js +++ b/js/tricorder.js @@ -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); };