You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fire an event named event at window, using DeviceOrientationEvent, with the alpha attribute initialized to z, the beta attribute initialized to x, the gamma attribute initialized to y, and the absolute attribute initialized to absolute.
However, the event needs to be initialized with DeviceOrientationEventInit instead.
The text was updated successfully, but these errors were encountered:
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:
Let eventInit be «[ "alpha" → z, "beta" → x, "gamma" → y, "absolute" → absolute ]».
In "fire an orientation event", it reads:
However, the event needs to be initialized with
DeviceOrientationEventInit
instead.The text was updated successfully, but these errors were encountered: