Did some debugging. I changed

camera.js, line 51 to

            capture.setAttribute("controls",true);

This fixed the bug, but the preview we used to get no longer works.

I can submit a pull request with this fix, but obviously it was just a
guess. Maybe Chrome recently got more strict about setAttribute.


On Wed, Mar 12, 2014 at 7:35 PM, Raymond Camden <[email protected]>wrote:

> Using the Camera API in the latest Cordova, Ripple, I get this in console
> after selecting an image:
>
> Uncaught TypeError: Failed to execute 'setAttribute' on 'Element': 2
> arguments required, but only 1 present.
>
> ripple.js:49275
>
> --
> ===========================================================================
> Raymond Camden, Web Developer for Adobe
>
> Email : [email protected]
> Blog : www.raymondcamden.com
> Twitter: cfjedimaster
>



-- 
===========================================================================
Raymond Camden, Web Developer for Adobe

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: cfjedimaster

Reply via email to