- From: Reilly Grant via GitHub <sysbot+gh@w3.org>
- Date: Fri, 14 Jun 2024 22:05:21 +0000
- To: public-device-apis-log@w3.org
Are there any canonical examples (e.g. in the WebIDL or Infra specs) for the correct incantation for initializing a new instance of an interface? I feel like I've seen a number of different styles over the years. Your comment that "the event needs to be initialized with `DeviceOrientationEventInit` instead" implies that the steps should be something like: > 1. Let _eventInit_ be «[ "alpha" → z, "beta" → x, "gamma" → y, "absolute" → absolute ]». > 2. Let _event_ be a [new](https://webidl.spec.whatwg.org/#new) [DeviceOrientationEvent](https://www.w3.org/TR/orientation-event/#deviceorientationevent) using _eventInit_. > 3. [Fire an event](https://dom.spec.whatwg.org/#concept-event-fire) named event at window, using _event_. -- GitHub Notification of comment by reillyeon Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/184#issuecomment-2168821445 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 14 June 2024 22:05:21 UTC