Avoid accessing data[0] with under/over scripts and mlabeledtr too. Address review command of issue #486.

This commit is contained in:
Frédéric Wang 2013-06-12 16:06:56 +02:00
parent 681405debc
commit 1cc5064462

View File

@ -594,7 +594,7 @@
if (this.data[this.over] == null) {type = "munder"}
var tag = this.NativeMMLelement(type);
this.NativeMMLattributes(tag);
delete this.data[0].inferred;
if (this.data[0]) {delete this.data[0].inferred}
for (var i = 0, m = this.data.length; i < m; i++)
{if (this.data[i]) {this.data[i].toNativeMML(tag)}}
parent.appendChild(tag);
@ -746,7 +746,7 @@
}
}
if (nMML.tableLabelBug) {
if (nMML.tableLabelBug && this.data[0]) {
var side = this.parent.Get("side").charAt(0),
align = HUB.config.displayAlign.charAt(0),
indent = HUB.config.displayIndent;