Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove WakeLockEvent and WakeLockEventInit. #242

Merged
merged 1 commit into from
Oct 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 3 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -580,28 +580,6 @@ <h3>The <dfn>onrelease</dfn> attribute</h3>
</aside>
</section>
</section>
<section data-dfn-for="WakeLockEvent" data-link-for="WakeLockEvent">
<h2>The <dfn>WakeLockEvent</dfn> interface</h2>
<pre class="idl">
[SecureContext, Exposed=(DedicatedWorker, Window)]
interface WakeLockEvent : Event {
constructor(DOMString type, WakeLockEventInit init);
readonly attribute WakeLockSentinel lock;
};

dictionary WakeLockEventInit : EventInit {
required WakeLockSentinel lock;
};
</pre>
<p><a>WakeLockEvent</a> objects indicate that an event has happened to a
given <a>WakeLockSentinel</a> object. A <a>WakeLockEvent</a> is
dispatched when a <a>WakeLockSentinel</a>'s wake lock is released.</p>
<section>
<h3>The <dfn>lock</dfn> attribute</h3>
<p>The <a>lock</a> attribute is a <a>WakeLockSentinel</a> object whose
wake lock has been released.</p>
</section>
</section>
<section>
<h2>
Managing Wake Locks
Expand Down Expand Up @@ -824,10 +802,8 @@ <h3>
</li>
</ol>
</li>
<li><a>Fire an event</a> named "`release`" at |lock| using
<a>WakeLockEvent</a> with its <a
data-link-for="WakeLockEvent">lock</a> attribute initialized to
|sentinel|.</li>
<li><a>Queue a task</a> to <a>fire an event</a> named "`release`" at
|lock|.</li>
</ol>
</section>
</section>
Expand Down Expand Up @@ -883,7 +859,7 @@ <h2>

const listener = (ev) => {
checkbox.checked = false;
ev.lock.removeEventListener('release', listener);
ev.target.removeEventListener('release', listener);
};

lock.addEventListener('release', listener);
Expand Down