Skip to content

Commit

Permalink
BatteryManager: Incorporate methods rather than include (#3388)
Browse files Browse the repository at this point in the history
* BatteryManager: Incorporate methods rather than include

* Fix up to link to parent methods
  • Loading branch information
hamishwillee committed Mar 23, 2021
1 parent 7a3eaff commit 2ef00f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions files/en-us/web/api/batterymanager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ <h3 id="Event_handlers">Event handlers</h3>

<h2 id="Methods">Methods</h2>

<p>Inherited from {{domxref("EventTarget")}}:</p>

<p>{{page("/en-US/docs/Web/API/EventTarget","Methods")}}</p>
<p><em>Inherits methods from its parent interface:</em> {{domxref("EventTarget")}}.</p>

<h2 id="Specifications">Specifications</h2>

Expand Down
10 changes: 0 additions & 10 deletions files/en-us/web/api/eventtarget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ <h2 id="Methods">Methods</h2>
<dd>Dispatches an event to this <code><var>EventTarget</var></code>.</dd>
</dl>

<h3 id="Additional_methods_in_Mozilla_chrome_codebase">Additional methods in Mozilla chrome codebase</h3>

<p>Mozilla includes a couple of extensions for use by JS-implemented event targets to implement <code>on<var>event</var></code> properties.</p>

<p>See also <a href="/en-US/docs/Mozilla/WebIDL_bindings">WebIDL bindings</a>.</p>

<ul>
<li><code>void <strong>setEventHandler</strong>(DOMString <var>type</var>, EventHandler <var>handler</var>)</code> {{non-standard_inline}}</li>
<li><code>EventHandler <strong>getEventHandler</strong>(DOMString <var>type</var>)</code> {{non-standard_inline}}</li>
</ul>

<h2 id="Example">Example</h2>

Expand Down

0 comments on commit 2ef00f4

Please sign in to comment.