Fix Javascript error in MathEvent.js. #562

This commit is contained in:
Frédéric Wang 2013-09-09 09:58:18 +02:00
parent 86a908bda8
commit 8c3c3f66b6

View File

@ -171,7 +171,7 @@
annotationList = MathJax.Hub.Config.semanticsAnnotations;
for (var i = 0, m = annotationItems.length; i < m; i++) {
var name = annotationItems[i].name[1]
if (jax.root.getAnnotation(name) !== null) {
if (jax.root && jax.root.getAnnotation(name) !== null) {
annotations.disabled = false;
annotationItems[i].hidden = false;
} else {