Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if id exists earlier #7

Open
Niq1982 opened this issue Jul 2, 2021 · 0 comments
Open

Check if id exists earlier #7

Niq1982 opened this issue Jul 2, 2021 · 0 comments

Comments

@Niq1982
Copy link
Contributor

Niq1982 commented Jul 2, 2021

In case the ID i missing we are creating a empty item to the element. Later the initializing will skip the invalid item, because it exists. So check for the id in the initializing stage and add it as a parameter to the constructor

if (! ('airReactionId' in reactionElement.dataset)) {
return false;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant