Skip to content

Commit 8d988a2

Browse files
committed
Check frequency option is present.
Closes #125.
1 parent fb16615 commit 8d988a2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ Abstract Operations {#abstract-operations}
717717
1. associate |sensor_instance| with |sensor|.
718718
1. Otherwise, [=throw=] a TypeError.
719719
1. Let |frequency| be the value of the {{frequency!!dict-member}} member of |options|.
720-
1. If |frequency| is not `null`,
720+
1. If |frequency| is [=present=],
721721
1. If |sensor| [=supports periodic reporting mode=],
722722
1. Set |sensor_instance|'s [=desired frequency=] to |frequency|.
723723
1. Otherwise,

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,7 @@

21302130
<li data-md="">
21312131
<p>Let <var>frequencyvar> be the value of the <code class="idl"><a class="idl-code" data-link-type="dict-member" href="#dom-sensoroptions-frequency" id="ref-for-dom-sensoroptions-frequency-1">frequencya>code> member of <var>optionsvar>.p>
21322132
<li data-md="">
2133-
<p>If <var>frequencyvar> is not <code>nullcode>,p>
2133+
<p>If <var>frequencyvar> is <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-present">presenta>,p>
21342134
<ol>
21352135
<li data-md="">
21362136
<p>If <var>sensorvar> <a data-link-type="dfn" href="#supports-periodic-reporting-mode" id="ref-for-supports-periodic-reporting-mode-1">supports periodic reporting modea>,p>
@@ -3044,6 +3044,7 @@

30443044
<li><a href="https://heycam.github.io/webidl/#SecureContext">SecureContexta>
30453045
<li><a href="https://heycam.github.io/webidl/#dfn-create-exception">createda>
30463046
<li><a href="https://heycam.github.io/webidl/#dfn-exception">exceptiona>
3047+
<li><a href="https://heycam.github.io/webidl/#dfn-present">presenta>
30473048
<li><a href="https://heycam.github.io/webidl/#dfn-throw">throwa>
30483049
ul>
30493050
ul>

0 commit comments

Comments
 (0)