Skip to content

Commit 4d23091

Browse files
committed
Merge pull request #565 from fred-wang/issue562
Fix Javascript error in MathEvent.js. #562
2 parents 51fda7d + 8c3c3f6 commit 4d23091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpacked/extensions/MathEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
annotationList = MathJax.Hub.Config.semanticsAnnotations;
172172
for (var i = 0, m = annotationItems.length; i < m; i++) {
173173
var name = annotationItems[i].name[1]
174-
if (jax.root.getAnnotation(name) !== null) {
174+
if (jax.root && jax.root.getAnnotation(name) !== null) {
175175
annotations.disabled = false;
176176
annotationItems[i].hidden = false;
177177
} else {

0 commit comments

Comments
 (0)