Camera full example has invalid JSON for Camera options object
--------------------------------------------------------------

                 Key: CB-523
                 URL: https://issues.apache.org/jira/browse/CB-523
             Project: Apache Callback
          Issue Type: Bug
          Components: Docs
    Affects Versions: 1.6.0
            Reporter: Filip Maj
            Assignee: Michael Brooks
             Fix For: 1.7.0


The top-most full example has the following code:

{code}
    function capturePhoto() {
      // Take picture using device camera and retrieve image as base64-encoded 
string
      navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
        destinationType.DATA_URL });
    }

    // A button will call this function
    //
    function capturePhotoEdit() {
      // Take picture using device camera, allow edit, and retrieve image as 
base64-encoded string  
      navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, 
allowEdit: true,
        destinationType.DATA_URL });
    }
{code}

Note how the Camera options object is not valid JSON.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to