- From: Philip Ackermann via GitHub <sysbot+gh@w3.org>
- Date: Tue, 17 May 2016 16:03:04 +0000
- To: public-device-apis@w3.org
cleancoderocker has just created a new issue for https://github.com/w3c/sensors: == Event object in error callback == The `onerror` event handler in the first code example has a parameter `error` (i.e., an error object), but it should be `event` (i.e., an event object). So instead sensor.onerror = function(error) { updateMap(error); }; it should be: sensor.onerror = function(event) { updateMap(event.error); }; Please view or discuss this issue at https://github.com/w3c/sensors/issues/111 using your GitHub account
Received on Tuesday, 17 May 2016 16:03:14 UTC