W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2015

Re: [sensors] When there are multiple sensors of a given type, how do we identify which one to instantiate?

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 Jun 2015 09:39:45 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-109931182-1433756383-sysbot+gh@w3.org>
> Johnny-Five is already being used in a similar application, but the 
difference is that the programmers working on the project are doing so
 in the presence of the vehicle.

@rwaldron: I understand your concerns. Maybe this warrants a note in 
the security section or some such. Can you file an issue for this if 
you feel it should be mentioned?

> Subjectively, list > getAll.

Favoring consistency over elegance here. `getAll` and now `matchAll` 
are used in [ServiceWorker][1], [URL][2], and [Fetch][3] specs for 
similar cases.

[1]: 
https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#clients-matchall-method
[2]: https://url.spec.whatwg.org/#dom-urlsearchparams-getallname
[3]: https://fetch.spec.whatwg.org/#dom-headers-getall

-- 
GitHub Notif of comment by tobie
See https://github.com/w3c/sensors/issues/26#issuecomment-109931182
Received on Monday, 8 June 2015 09:39:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:05 UTC