We have some dynamic sections where it's possible you could get in a state that an ID isn't present on the page but an onClick handler is still invoked. In general, I think this will help the codepath silently fail (maybe add a console warning?) and prevent an undefined reference on a missing ID.
We have some dynamic sections where it's possible you could get in a state that an ID isn't present on the page but an onClick handler is still invoked. In general, I think this will help the codepath silently fail (maybe add a console warning?) and prevent an undefined reference on a missing ID.