Can I propose that we do not clobber the common object, but simply add an 'inside exec' proxy to the additional functionality?
The additional API to support this would look like: https://github.com/purplecabbage/incubator-cordova-js/blob/master/lib/windows8/exec.js Realistically, the list of proxies should not be defined in exec.js but elsewhere. Currently not sure where ... Assume that in the future, there will be a singular pluggable compass.js file that is common to all platforms and beyond your control. On Thu, Aug 30, 2012 at 9:12 AM, <[email protected]> wrote: > Well in that case I will update bb10 to the new way and just clobber the > common object. Other platfoms can borrow if they want (tizen ;)) > Sent on the TELUS Mobility network with BlackBerry > > -----Original Message----- > From: Filip Maj <[email protected]> > Date: Thu, 30 Aug 2012 09:08:00 > To: [email protected]<[email protected]> > Reply-To: [email protected] > Subject: Re: Refactoring Compass js -> Native interactions > > SureeeĊ although this API will likely go away once we do The Great API > Review. > > On 8/30/12 8:59 AM, "Gord Tanner" <[email protected]> wrote: > > >Hey, > > > >Since Geolocation and Accelerometer have both been refactored: > >https://issues.apache.org/jira/browse/CB-462 > > > >Do we have plans to do the same with Compass? > > > >Working on BB10 we will be using the deviceorientation event to > >polyfill this API (like tizen: > > > https://github.com/apache/incubator-cordova-js/blob/master/lib/tizen/plugi > >n/tizen/Compass.js) > >and having the start / stop native calls would really help clean up > >tizen and BB10's calls for this API. > > -- @purplecabbage risingj.com
