Re: [dom] Make addEventListener throw for service worker optimization (#155)

> @@ -1065,6 +1065,15 @@ seen from the definition above, an <a>event listener</a> is a more broad concept
>  method, when invoked, must run these steps:
>  
>  <ol>
> + <li>
> +  <p>If the <a>context object</a>'s global object is a {{ServiceWorkerGlobalScope}} object and its
> +  associated <a>service worker</a>'s <a>script resource</a>'s <a>has ever been evaluated flag</a> is
> +  set, <a>throw</a> a <code>TypeError</code>. [[!SW]]
> +
> +  <p class="note no-backref">To optimize storing the event types allowed for the service worker and
> +  to avoid non-deterministic additions of the event listeners, the user agent allows the invocation

s/additions of/changes to/
s/the user agent allows the invocation of the method/invocation of the method is allowed/


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/155/files#r51848031

Received on Thursday, 4 February 2016 09:36:52 UTC