W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2012

Re: [magnetic field event] Proposal for magnetic field event

From: Marcos Caceres <w3c@marcosc.com>
Date: Fri, 28 Dec 2012 19:10:44 +0000
To: Rick Waldron <waldron.rick@gmail.com>
Cc: Doug Turner <dougt@mozilla.com>, Ray You <ryou@mozilla.com>, "public-device-apis@w3.org" <public-device-apis@w3.org>, "doug.turner@gmail.com" <doug.turner@gmail.com>, Thinker Lee <tlee@mozilla.com>, Marco Chen <mchen@mozilla.com>, "bj-b2g@mozilla.com" <bj-b2g@mozilla.com>
Message-ID: <7F28C09304A7440DAD38A8FB668F29C6@marcosc.com>



On Friday, December 28, 2012 at 6:59 PM, Rick Waldron wrote:

> 
> 
> On Friday, December 28, 2012, Doug Turner wrote:
> > On 12/28/12 10:40 AM, Rick Waldron wrote:
> > > These APIs absolutely need to move away from copying the
> > > DeviceOrientation and DeviceMotion specs.
> > 
> > 
> > I disagree. I think for the sake of consistency, we should follow the
> > pattern.
> 
> 
> Just because there is a pattern, doesnt make it the right pattern. The design is wrong and ill-fitting for JavaScript programs. Dispatching events to an irrelevant global object is a sloppy and misguided approach that will fail hard once there is more then on of any sensor type.
FWIW, I also agree with Rick - the design is not great (or not as nice as it could be). I'm wondering if there is anything we can do to change these designs around in a rapid manner (or have implementations already shipped?).  

-- 
Marcos Caceres
Received on Friday, 28 December 2012 19:11:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 28 December 2012 19:11:15 GMT