mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
776319ac8e
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.