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

@marcoscaceres 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 = {});

Sounds good. 

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

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

Received on Thursday, 10 July 2025 23:26:18 UTC