W3C home > Mailing lists > Public > public-autowebplatform@w3.org > October 2014

Re: incorrect "unsigned short" in Vehicle Data doc

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Wed, 08 Oct 2014 18:45:12 +0200
Message-ID: <1412786712.4537.137.camel@cumulustier>
To: "Rees, Kevron" <kevron.m.rees@intel.com>
Cc: "public-autowebplatform@w3.org" <public-autowebplatform@w3.org>
Le mercredi 08 octobre 2014 à 09:33 -0700, Rees, Kevron a écrit :
> With regard to subscribe, this concern has been brought up multiple
> times.  We did not feel it was possible to subscribe to a specific
> zone using the typical event listener syntax (ie.
> vehicle.addEventListener("Door", handlerCallback)).  Which zone are
> you listening for?  all zones?

I think the right way would be to have various objects representing the
various zones, and make them the event targets; for instance:
vehicle.zones["front"]["left].door.addEventListener('change',
handlerCallback);

(or using other logical way of organizing the various vehicle zones)

Dom
Received on Wednesday, 8 October 2014 16:45:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:06:40 UTC