- From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
- Date: Fri, 19 Jan 2018 11:12:34 +0000
- To: public-device-apis-log@w3.org
I am wondering whether ``` Sensor { readonly attribute SensorOptions? options; } ``` is the best way or not. I think most other APIs apply the individual options directly on the object, like ``` Sensor { readonly attribute number frequency; readonly attribute USVString coordinateSystem; } Basically a bit like they were applied to the object, ``` sensor = {} options = { coordinateSystem: "screen" } Object.assign(sensor, options) sensor.coordinateSystem > "screen" ``` -- GitHub Notification of comment by kenchris Please view or discuss this issue at https://github.com/w3c/sensors/issues/257#issuecomment-358936850 using your GitHub account
Received on Friday, 19 January 2018 11:12:37 UTC