Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-76694 core_comment: exit the js init if the element cannot be found
In pages which result in the theme_boost/embedded template being used, blocks may be rendered and the resulting HTML ignored, leaving any JS they may have added to run without a corresponding DOM element to act on. This fixes that case for comments, making sure we exit gracefully during the init if the element can't be found.
- Loading branch information