www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1cc5064462fc565897ac0fbfec8b1100cf9572b1
parent 681405debccb04f6993738ce2d684e6341484b19
Author: Frédéric Wang <fred.wang@free.fr>
Date:   Wed, 12 Jun 2013 16:06:56 +0200

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

Diffstat:
Munpacked/jax/output/NativeMML/jax.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js @@ -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;