mirror of
https://github.com/moodle/moodle.git
synced 2025-04-03 23:42:39 +02:00
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.