mirror of https://github.com/writeas/writefreely
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.pull/81/head
parent
372b4e5dcd
commit
f40ce14fb2
Loading…
Reference in new issue