Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

allow defining custom elements in a try/catch #51

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

keithamus
Copy link
Contributor

This relaxes the no-unchecked-define rule to allow for customElements.define calls that exist within a try/catch block. We've found the try/catch pattern to be helpful when defining elements within the context of a custom elements HMR plugin, that expects you to call define() on each load.

See github/relative-time-element#209 and github/catalyst#197 for more.

@keithamus keithamus requested a review from a team as a code owner November 30, 2022 16:41
@keithamus keithamus requested a review from srt32 November 30, 2022 16:41
@keithamus keithamus force-pushed the allow-defining-custom-elements-in-a-try-catch branch from f96aa25 to 8c61b98 Compare January 3, 2023 11:32
@keithamus keithamus merged commit 6c96800 into main Jan 3, 2023
@keithamus keithamus deleted the allow-defining-custom-elements-in-a-try-catch branch January 3, 2023 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants