Actually, however, can't you just test the 'focus' property of lib/camera.js to ensure that it is not in the 'focusing' state?  Hopefully you don't need another state variable here.