- From: Peter Beverloo <notifications@github.com>
- Date: Thu, 15 Oct 2015 08:46:25 -0700
- To: w3c/push-api <push-api@noreply.github.com>
- Message-ID: <w3c/push-api/pull/166/r42141682@github.com>
> </li> > </ol> > <p> > When a constructor of the <a>PushEvent</a> interface, or of an interface that inherits > from the <a>PushEvent</a> interface, is invoked, the usual <a>steps for constructing > - events</a> MUST be modified as follows: instead of setting the <code>data</code> > - attribute of the event to the value of the <var>eventInitDict</var>'s "<code id= > - "widl-PushEventInit-data">data</code>" member, set the <code>data</code> attribute to a > - new <a>PushMessageData</a> with <a>bytes</a> set to the result of <a data-lt= > - "extract a byte sequence">extracting a byte sequence</a> from that dictionary member, or > - an empty byte sequence if the "<code id="widl-PushEventInit-data">data</code>" member is > - not provided. > + events</a> are modified so that instead of setting the <code>data</code> attribute of the > + event to the value of the <var>eventInitDict</var>'s "<code>data</code>" member, set the > + <code>data</code> attribute to a new <a>PushMessageData</a> instances with <a>bytes</a> instances -> instance In general, this sentence is very hard to parse. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/push-api/pull/166/files#r42141682
Received on Thursday, 15 October 2015 15:47:02 UTC