[Bug 16613] Consider a more object-oriented design in which sessions are represented as objects

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16613

--- Comment #6 from Mark Watson <watsonm@netflix.com> 2012-06-12 15:33:51 UTC ---
(In reply to comment #5)
> 1. why we specify this type: uint8array for message? why not just using string
> or not specify the type?

This is the appropriate type for a sequence of bytes. A string is a sequence of
unicode characters. The type needs to be specified because scripts need to be
written that handle these messages (for example to send them to a remote
server) without embedding keysystem-specifics in the script.

> 
> 2. why we always have xxxEventInit for each type of event? what's the intention
> of this xxxEventInit?

This is just the standard pattern for providing initialization parameters to an
object constructor.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 12 June 2012 15:33:58 UTC