Skip to content

Commit 1cc5064

Browse files
committed
Avoid accessing data[0] with under/over scripts and mlabeledtr too. Address review command of issue #486.
1 parent 681405d commit 1cc5064

File tree

1 file changed

+2
-2
lines changed
  • unpacked/jax/output/NativeMML

1 file changed

+2
-2
lines changed

unpacked/jax/output/NativeMML/jax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@
594594
if (this.data[this.over] == null) {type = "munder"}
595595
var tag = this.NativeMMLelement(type);
596596
this.NativeMMLattributes(tag);
597-
delete this.data[0].inferred;
597+
if (this.data[0]) {delete this.data[0].inferred}
598598
for (var i = 0, m = this.data.length; i < m; i++)
599599
{if (this.data[i]) {this.data[i].toNativeMML(tag)}}
600600
parent.appendChild(tag);
@@ -746,7 +746,7 @@
746746
}
747747
}
748748

749-
if (nMML.tableLabelBug) {
749+
if (nMML.tableLabelBug && this.data[0]) {
750750
var side = this.parent.Get("side").charAt(0),
751751
align = HUB.config.displayAlign.charAt(0),
752752
indent = HUB.config.displayIndent;

0 commit comments

Comments
 (0)