Skip to content

Commit

Permalink
Add warning for create and trigger event upgrade example (#35612)
Browse files Browse the repository at this point in the history
* Add warning for create and trigger event upgrade example

* Update index.md

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
  • Loading branch information
JoshuaBehrens and hamishwillee authored Sep 23, 2024
1 parent ed6a48a commit a66fcac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The older approach to creating events uses APIs inspired by Java. The following
const event = document.createEvent("Event");

// Define that the event name is 'build'.
event.initEvent("build", true, true);
event.initEvent("build");

// Listen for the event.
elem.addEventListener(
Expand Down

0 comments on commit a66fcac

Please sign in to comment.