Confirmed users
19
edits
No edit summary |
|||
| Line 94: | Line 94: | ||
# Create an event that uses the '''DeviceMagneticFieldEvent''' interface, with the name ''devicemagneticfield'', which bubbles, is not cancelable, and has no default action, that also meets the following conditions: | # Create an event that uses the '''DeviceMagneticFieldEvent''' interface, with the name ''devicemagneticfield'', which bubbles, is not cancelable, and has no default action, that also meets the following conditions: | ||
## If the implementation is unable to report the current device | ## If the implementation is unable to report the current device magnetic field, it must stop the service, otherwise initialize the attribute to the '''''current device magnetic field'''''. | ||
# Queue a task to dispatch the newly created event at the Window object. | # Queue a task to dispatch the newly created event at the Window object. | ||