W3C home > Mailing lists > Public > public-secondscreen@w3.org > November 2015

Re: [presentation-api] Add a PresentationConnection.disconnected state for accidental disconnections

From: Mounir Lamouri via GitHub <sysbot+gh@w3.org>
Date: Sat, 07 Nov 2015 12:00:05 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-154695018-1446897604-sysbot+gh@w3.org>
Wouldn't that be better to create a 
`PresentationConnectionStateChangeEvent` that would be use when firing
 a `statechange` event instead of firing a `simple event`? We could 
add some property there. For example `userInitiated`. It sounds 
cleaner than creating a new concept (`disconnected`) that wouldn't 
really mean what it says -- If I understand correctly, `disconnected` 
isn't really that the connection is disconnected but that it was 
`closed` without user intervention.

-- 
GitHub Notif of comment by mounirlamouri
See 
https://github.com/w3c/presentation-api/issues/217#issuecomment-154695018
Received on Saturday, 7 November 2015 12:00:07 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 7 November 2015 12:00:08 UTC