We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
iterate over a node list received from mutation observer with foreach
for (Node node : nodes) { }
it throws class cast exception and this happens when the node is not an element, but a text or comment node in firefox it works without errors
the solution for this is to use normal loops and do Js.uncheckedCast() to node, then we check the type of the node if it is an element node.
Js.uncheckedCast()
The text was updated successfully, but these errors were encountered:
#61: Fix for each loop; inline methods
3519d78
3519d78 should fix the issue. @vegegoku could you please test if that works for you?
Sorry, something went wrong.
@hpehl this works now, thank you so much.
Fixed by 3519d78
7cd6406
No branches or pull requests
iterate over a node list received from mutation observer with foreach
it throws class cast exception
and this happens when the node is not an element, but a text or comment node
in firefox it works without errors
the solution for this is to use normal loops and do
Js.uncheckedCast()
to node, then we check the type of the node if it is an element node.The text was updated successfully, but these errors were encountered: