@@ -670,25 +670,6 @@ Returns a timestamp of the time
670
670
at which the [=sensor reading|reading=] was obtained from the [=sensor=]
671
671
expressed in milliseconds that passed since the [=time origin=] .
672
672
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
-
692
673
693
674
The SensorErrorEvent Interface {#the-sensor-error-event-interface}
694
675
------------------------------
@@ -929,9 +910,8 @@ Abstract Operations {#abstract-operations}
929
910
1. If |sensor_instance|'s
{{Sensor/state!!attribute}} is
"activating" :
930
911
1. Invoke the [=update state=] algorithm passing |sensor_instance|
931
912
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,
933
914
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|.
935
915
1. [=Queue a task=] to [=dispatch=] |e| at |sensor_instance|.
936
916
937
917
0 commit comments