My additional justification was that BOTH android and BB used the array approach, and only iOS used the object approach, so I went with what the majority of platforms rolled with.
On 4/3/12 1:51 PM, "Shazron" <[email protected]> wrote: >My guess is this change was to match the Android side, I had to make >the same change for Notification API, which broke because of this. > >On Tue, Apr 3, 2012 at 1:44 PM, Becky Gibson <[email protected]> >wrote: >> Somehow I missed this change in unified JS. Why are we now passing an >>array >> of parameters to getPicture rather than an options object? By passing >>the >> object, we allowed people to easily extend the getPicture api by just >> adding their new option into an options object and modifying their copy >>of >> the device specific camera implementation. They did not have to modify >>the >> PhoneGap/Cordova.js implementation (at least on the iOS side). Now, in >> order to add a new parameter to getPicture, you need to modify the JS as >> well to pass yet another parameter into getPicture - the list is already >> long and we have lost some of the iOS options that were available. >> >> curious minds are a dangerous thing......
