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

Assert targets at runtime #16

Open
koddsson opened this issue Mar 13, 2020 · 1 comment
Open

Assert targets at runtime #16

koddsson opened this issue Mar 13, 2020 · 1 comment

Comments

@koddsson
Copy link
Contributor

We need a way to assert that the target exists in the HTML at runtime.

@Scipion
Copy link
Contributor

Scipion commented Dec 28, 2020

Something like throwing a ReferenceError when findTarget returns undefiend (and findTargets returns empty Array) would do the work. I've checked that there is not throw Error in the whole project, so I assume it's not the desired solution.

I know it's an old issue, but there is any code style definition about how to implement it?

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

2 participants