Bug 957709 - Patch to prevent Camera/Gallery switch buttons from being hammered.

Update patch for 957709 after djf's review.

Updated PR 15845 following review.

Clean up.

Fixed typo in comments.

Added comment for clarity in camera.js.

linted.
Merge pull request #15845 from justindarc/v1.3

Bug 957709 - Patch to prevent Camera/Gallery switch buttons from being hammered