Skip to content

Commit

Permalink
Expose events in workers
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jan 28, 2014
1 parent ac5c432 commit 0f69e71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,8 @@ <h3>Introduction to "DOM Events"</h3>

<h3>Interface <code>Event</code></h3>

<pre class="idl">[<span title=concept-event-constructor>Constructor</span>(DOMString <var title>type</var>, optional <span>EventInit</span> <var title>eventInitDict</var>)]
<pre class="idl">[<span title=concept-event-constructor>Constructor</span>(DOMString <var title>type</var>, optional <span>EventInit</span> <var title>eventInitDict</var>),
Exposed=Window,Worker]
interface <dfn>Event</dfn> {
readonly attribute DOMString <span title=dom-Event-type>type</span>;
readonly attribute <span>EventTarget</span>? <span title=dom-Event-target>target</span>;
Expand Down Expand Up @@ -1023,7 +1024,8 @@ <h3>Interface <code>Event</code></h3>

<h3>Interface <code>CustomEvent</code></h3>

<pre class=idl>[<span title=concept-event-constructor>Constructor</span>(DOMString <var title>type</var>, optional <span>CustomEventInit</span> <var title>eventInitDict</var>)]
<pre class=idl>[<span title=concept-event-constructor>Constructor</span>(DOMString <var title>type</var>, optional <span>CustomEventInit</span> <var title>eventInitDict</var>),
Exposed=Window,Worker]
interface <dfn>CustomEvent</dfn> : <span>Event</span> {
readonly attribute any <span title=dom-CustomEvent-detail>detail</span>;

Expand Down Expand Up @@ -1109,7 +1111,8 @@ <h3>Defining event interfaces</h3>

<h3>Interface <code>EventTarget</code></h3>

<pre class=idl>interface <dfn>EventTarget</dfn> {
<pre class=idl>[Exposed=Window,Worker]
interface <dfn>EventTarget</dfn> {
void <span title=dom-EventTarget-addEventListener>addEventListener</span>(DOMString <var title>type</var>, <span>EventListener</span>? <var title>callback</var>, optional boolean <var title>capture</var> = false);
void <span title=dom-EventTarget-removeEventListener>removeEventListener</span>(DOMString <var title>type</var>, <span>EventListener</span>? <var title>callback</var>, optional boolean <var title>capture</var> = false);
boolean <span title=dom-EventTarget-dispatchEvent>dispatchEvent</span>(<span>Event</span> <var title>event</var>);
Expand Down

0 comments on commit 0f69e71

Please sign in to comment.