You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposed WebIDL for this API includes a SerialConnectionEvent. The TAG design principles suggest using a generic event and storing state in the target attribute. This change would require moving the connect and disconnect event handler attributes to the SerialPort interface and defining that events bubble from SerialPort instances to the singleton Serial instance.
The text was updated successfully, but these errors were encountered:
I think this advice isn't as applicable here, because the port is not itself an EventTarget, and thus cannot be the target of the event. A custom event subclass seems very reasonable for this case.
The proposed WebIDL for this API includes a SerialConnectionEvent. The TAG design principles suggest using a generic event and storing state in the
target
attribute. This change would require moving theconnect
anddisconnect
event handler attributes to theSerialPort
interface and defining that events bubble fromSerialPort
instances to the singletonSerial
instance.The text was updated successfully, but these errors were encountered: