- From: Tobie Langel via GitHub <sysbot+gh@w3.org>
- Date: Thu, 21 Jan 2016 23:57:18 +0000
- To: public-device-apis@w3.org
tobie has just created a new issue for https://github.com/w3c/sensors: == Should SensorReading inherit from Event? == This would be logical given it _is_ an event. however, we're using a custom high resolution timestamp, and also exposing it through the `reading` property of the `Sensor` object. Couple of options: 1. inherit from `Event` and just overwrite timestamp. Be OK with just sticking an `Event` on the `reading` prop of an object. 2. Extend events with the relevant `SensorReading` object. Overwrite the event's timestamp? Use a different property for the timestamp? `sensorReadingTimestamp`? `highresTimestamps`? Wait for DOM events to use high res timestamps? The list goes on. 3. Stick the entire `SensorReading` object in the `reading` property of a vanilla event and be done with it. Please view or discuss this issue at https://github.com/w3c/sensors/issues/82 using your GitHub account
Received on Thursday, 21 January 2016 23:57:20 UTC