I don't know why the existing code was so verbose. Its fine like this, but feel free to simplify it:

var flash = this.flashState[this.captureMode];
flash.currentFlashMode = (flash.currentFlashMode + 1) % flash.modes.length;