summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/js/extra.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index ce00d0e3..200a4652 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -208,10 +208,8 @@ function finishView(view) {
//mathjax
var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray();
try {
- for (var i = 0; i < mathjaxdivs.length; i++) {
- MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs[i].innerHTML]);
- MathJax.Hub.Queue(viewAjaxCallback);
- }
+ MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs]);
+ MathJax.Hub.Queue(viewAjaxCallback);
} catch (err) {}
//sequence diagram
var sequences = view.find(".sequence-diagram.raw").removeClass("raw");