HomeWrite.as

Resolve an edge case where last language has error

Description

Resolve an edge case where last language has error

If there are multiple language blocks on a page, we set the
onload on the last one to load all highlighting at once.

If the last language block has an error, the onload would
never fire and thus all blocks would not be highlighted.

The simplest resolution is to fire the callback regardless. We've
already loaded everything so running the callback is not causing any
performance hit which is relevant I think.

Details

Provenance
Marcel van der Boom <marcel@hsdev.com>Authored on Mar 5 2019, 1:36 PM
Parents
rWF372b4e5dcdc0: Fix nil pointer when navigating to bad invite URL
Branches
Unknown
Tags
Unknown
References
refs/pull/81/head