Re: [w3c/gamepad] Make eventInitDict param optional in GamepadEvent constructor (PR #217)

@nondebug commented on this pull request.



> @@ -1752,7 +1752,7 @@ <h2>
         [Exposed=Window]
 
         interface GamepadEvent: Event {
-          constructor(DOMString type, GamepadEventInit eventInitDict);
+          constructor(DOMString type, optional GamepadEventInit eventInitDict = {});

Blink, Gecko, WebKit agree that GamepadEventInit's `gamepad` attribute is optional and nullable, let's update the spec to match.

```
  Gamepad? gamepad;  // blink
  Gamepad? gamepad = null;  // Gecko
  Gamepad? gamepad = null;  // WebKit
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/217#discussion_r1796278859
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/gamepad/pull/217/review/2361710374@github.com>

Received on Friday, 11 October 2024 00:51:42 UTC