Skip to content

Commit 9711ca4

Browse files
authored
Merge pull request #440 from rakuco/initialize-sensor-improve-notation
Initialize a sensor object: Improve notation and terms being referenced.
2 parents 60756e1 + 6cb0ad1 commit 9711ca4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,10 +1275,10 @@ to {{SensorErrorEventInit}}.
12751275
1. [=map/For each=] |key| → <var ignore>value</var> of |options|
12761276
1. If the associated [=supported sensor options=] [=set/contains|does not contain=] |key|
12771277
1. [=Throw=] "{{NotSupportedError!!exception}}" {{DOMException}}.
1278-
1. If |options|.{{frequency!!dict-member}} is [=present=], then
1279-
1. Set |sensor_instance|.{{[[frequency]]}} to |options|.{{frequency!!dict-member}}.
1278+
1. If |options|["{{frequency!!dict-member}}"] [=map/exists=], then
1279+
1. Set |sensor_instance|.{{[[frequency]]}} to |options|["{{frequency!!dict-member}}"].
12801280

1281-
Note: there is not guarantee that the requested |options|.{{frequency!!dict-member}}
1281+
Note: there is not guarantee that the requested |options|["{{frequency!!dict-member}}"]
12821282
can be respected. The actual [=sampling frequency=] can be calculated using
12831283
{{Sensor}} {{Sensor/timestamp!!attribute}} attributes.
12841284
</div>

0 commit comments

Comments
 (0)