Skip to content

Commit 287db1d

Browse files
committed
Remove SensorReadingEvent.
Closes #103.
1 parent a45d458 commit 287db1d

File tree

2 files changed

+23
-102
lines changed

2 files changed

+23
-102
lines changed

index.bs

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -670,25 +670,6 @@ Returns a timestamp of the time
670670
at which the [=sensor reading|reading=] was obtained from the [=sensor=]
671671
expressed in milliseconds that passed since the [=time origin=].
672672

673-
The SensorReadingEvent Interface {#the-sensor-reading-event-interface}
674-
--------------------------------
675-
676-
677-
[Constructor(DOMString type, SensorReadingEventInit eventInitDict)]
678-
interface SensorReadingEvent : Event {
679-
readonly attribute SensorReading reading;
680-
};
681-
682-
dictionary SensorReadingEventInit : EventInit {
683-
required SensorReading reading;
684-
};
685-
686-
687-
### SensorReadingEvent.reading ### {#sensor-reading-event-reading}
688-
689-
The reading attribute references
690-
the [=current reading=] at the time of [=dispatch|event dispatch=].
691-
692673

693674
The SensorErrorEvent Interface {#the-sensor-error-event-interface}
694675
------------------------------
@@ -929,9 +910,8 @@ Abstract Operations {#abstract-operations}
929910
1. If |sensor_instance|'s {{Sensor/state!!attribute}} is "activating":
930911
1. Invoke the [=update state=] algorithm passing |sensor_instance|
931912
and "active" as the arguments.
932-
1. Create an [=event=] |e| that uses the {{SensorReadingEvent}} interface,
913+
1. Create an [=event=] |e| that uses the {{Event}} interface,
933914
with the event type `reading`, which does not bubble, is not cancelable, is [=trusted=], and has no default action.
934-
1. Let the {{SensorReadingEvent/reading!!attribute}} attribute of |e| be initialized to |reading|.
935915
1. [=Queue a task=] to [=dispatch=] |e| at |sensor_instance|.
936916
937917

0 commit comments

Comments
 (0)