Skip to content

Commit

Permalink
Fixed some minor issues
Browse files Browse the repository at this point in the history
- watch() promise should no longer return a long value
- NotFoundError is no longer used
- s/second callback/second argument
  • Loading branch information
Honry authored and kenchris committed Dec 4, 2018
1 parent 01b44d9 commit bfb6517
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.html
Expand Up @@ -271,8 +271,6 @@
<code><dfn>SyntaxError</dfn></code></a>,
<a href="https://heycam.github.io/webidl/#notsupportederror">
<code><dfn>NotSupportedError</dfn></code></a>,
<a href="https://heycam.github.io/webidl/#notfounderror">
<code><dfn>NotFoundError</dfn></code></a>,
<a href="https://heycam.github.io/webidl/#networkerror">
<code><dfn>NetworkError</dfn></code></a>,
<a href="https://heycam.github.io/webidl/#nomodificationallowederror">
Expand Down Expand Up @@ -1455,7 +1453,7 @@ <h2>The <dfn>NFCRecordType</dfn> enum</h2>
[SecureContext]
interface NFC {
Promise&lt;void&gt; push(NFCPushMessage message, optional NFCPushOptions options);
Promise&lt;long&gt; watch(MessageCallback callback, optional NFCWatchOptions options);
Promise&lt;void&gt; watch(MessageCallback callback, optional NFCWatchOptions options);
};

callback MessageCallback = void (NFCMessage message);
Expand Down Expand Up @@ -1791,7 +1789,7 @@ <h2>The <dfn>NFCWatchMode</dfn> enum</h2>
Let <var>message</var> be the first argument.
</li>
<li>
Let <var>options</var> be the second callback.
Let <var>options</var> be the second argument.
</li>
<li>
Let <var>signal</var> be the <var>options</var>’ dictionary member of the same
Expand Down Expand Up @@ -2650,7 +2648,7 @@ <h2>The <dfn>NFCWatchMode</dfn> enum</h2>
Let <var>callback</var> be the first argument.
</li>
<li>
Let <var>options</var> be the second callback.
Let <var>options</var> be the second argument.
</li>
<li>
Let <var>signal</var> be the <var>options</var>’ dictionary member of the same
Expand Down

0 comments on commit bfb6517

Please sign in to comment.