Don't try to typset mathjax if Hub has not loaded.
In our tests there are times when Mathjax has been initialized but Hub is still undefied. In this case don't queue up typesetting.
This commit is contained in:
@@ -485,7 +485,7 @@
|
||||
};
|
||||
|
||||
DiscussionUtil.typesetMathJax = function(element) {
|
||||
if (typeof MathJax !== 'undefined' && MathJax !== null) {
|
||||
if (typeof MathJax !== 'undefined' && MathJax !== null && MathJax.Hub !== 'undefined') {
|
||||
MathJax.Hub.Queue(['Typeset', MathJax.Hub, element[0]]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user