Skip to content

Commit

Permalink
Resolve issue 51 don't recommend createEvent
Browse files Browse the repository at this point in the history
Everything but MutationEvent (which has no Constructor at the moment).
Perhaps it should, but that's another issue.
  • Loading branch information
travisleithead committed Jan 20, 2016
1 parent adfb3c0 commit e5ba8ae
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1238,10 +1238,8 @@ <h4>Interface UIEvent</h4>
with User Interface events.
</p>

<p>To create an instance of the <code>UIEvent</code> interface, use the
<a href="#widl-DocumentEvent-createEvent"><code>DocumentEvent.createEvent("UIEvent")</code></a>
method call.
</p>
<p>To create an instance of the <code>UIEvent</code> interface, use the UIEvent constructor,
passing an optional <code>UIEventInit</code> dictionary.</p>

<dl class="idl" title="[Constructor(DOMString type, optional UIEventInit eventInitDict)] interface UIEvent : Event">
<dt>readonly attribute Window? view</dt>
Expand Down Expand Up @@ -1677,10 +1675,8 @@ <h4>Interface FocusEvent</h4>
with Focus events.
</p>

<p>To create an instance of the <code>FocusEvent</code> interface, use the
<a href="#widl-DocumentEvent-createEvent"><code>DocumentEvent.createEvent("FocusEvent")</code></a>
method call.
</p>
<p>To create an instance of the <code>FocusEvent</code> interface, use the FocusEvent constructor,
passing an optional <code>FocusEventInit</code> dictionary.</p>

<dl class="idl" title="[Constructor(DOMString typeArg, optional FocusEventInit focusEventInitDict)] interface FocusEvent : UIEvent">
<dt>readonly attribute EventTarget? relatedTarget</dt>
Expand Down Expand Up @@ -2092,10 +2088,8 @@ <h4>Interface MouseEvent</h4>
of mouse events which occur within their descendent elements.
</p>

<p>To create an instance of the <code>MouseEvent</code> interface, use the
<a href="#widl-DocumentEvent-createEvent"><code>DocumentEvent.createEvent("MouseEvent")</code></a>
method call.
</p>
<p>To create an instance of the <code>MouseEvent</code> interface, use the MouseEvent constructor,
passing an optional <code>MouseEventInit</code> dictionary.</p>

<p class="note"><strong>Note:</strong>
When initializing <code>MouseEvent</code> objects using <code>initMouseEvent</code>,
Expand Down Expand Up @@ -3894,10 +3888,8 @@ <h4>Interface WheelEvent</h4>
events.
</p>

<p>To create an instance of the <code>WheelEvent</code> interface, use the
<a href="#widl-DocumentEvent-createEvent"><code>DocumentEvent.createEvent("WheelEvent")</code></a>
method call.
</p>
<p>To create an instance of the <code>WheelEvent</code> interface, use the WheelEvent constructor,
passing an optional <code>WheelEventInit</code> dictionary.</p>

<dl class="idl" title="[Constructor(DOMString typeArg, optional WheelEventInit wheelEventInitDict)] interface WheelEvent : MouseEvent">
<dt>// DeltaModeCode</dt>
Expand Down Expand Up @@ -4174,10 +4166,8 @@ <h4>Interface KeyboardEvent</h4>
</p>

<p>To create an instance of the <a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
interface, use the
<a href="#widl-DocumentEvent-createEvent"><code>DocumentEvent.createEvent("KeyboardEvent")</code></a>
method call.
</p>
interface, use the KeyboardEvent constructor,
passing an optional <code>KeyboardEventInit</code> dictionary.</p>

<dl class="idl" title="[Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict)] interface KeyboardEvent : UIEvent">
<dt>// KeyLocationCode</dt>
Expand Down Expand Up @@ -4885,8 +4875,8 @@ <h4>Interface CompositionEvent</h4>

<p>The <code>CompositionEvent</code> interface provides specific contextual information associated with Composition Events.</p>

<p>To create an instance of the <code>CompositionEvent</code> interface, use the <a href="#widl-DocumentEvent-createEvent"><code>DocumentEvent.createEvent("CompositionEvent")</code></a>
method call.</p>
<p>To create an instance of the <code>CompositionEvent</code> interface, use the CompositionEvent constructor,
passing an optional <code>CompositionEventInit</code> dictionary.</p>

<dl class="idl" title="[Constructor(DOMString typeArg, optional CompositionEventInit compositionEventInitDict)] interface CompositionEvent : UIEvent">
<dt>readonly attribute DOMString data</dt>
Expand Down

0 comments on commit e5ba8ae

Please sign in to comment.