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

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

From: Rick Waldron <waldron.rick@gmail.com>
Date: Fri, 28 Dec 2012 13:40:42 -0500
Message-ID: <CAHfnhfqdSQJEJJ0GMhDWJShK2hPLKm8=ihoA7yBNOqyBi1sycg@mail.gmail.com>
To: Ray You <ryou@mozilla.com>
Cc: "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>
On Monday, December 24, 2012, Ray You wrote:

>  Hi all,
> Here is my proposal for magnetic field event: [1]. Implementation is at
> [2].
> Your thoughts are welcome.
> [1] https://wiki.mozilla.org/Magnetic_Field_Events
> [2] https://bugzilla.mozilla.org/show_bug.cgi?id=802004

My feedback is the same feedback that I gave for both the Proximity and
Ambient Light events proposals, which can be read here:


And more thoroughly described here:


These APIs absolutely need to move away from copying the DeviceOrientation
and DeviceMotion specs. Sensors should be constructable objects with get
accessor properties that expose the current value of whatever the sensor is
reading. Sensors should inherit EventTarget to allow registration of event
handlers for value change events.

"window" is not logically the entity for which these events have occurred,
so dispatching the event to the window doesn't make sense.


> --
> Best regards,
> 尤睿(Ray You)
Received on Friday, 28 December 2012 18:41:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:47 UTC