Skip to content

Commit 681405d

Browse files
committed
Avoid accessing data[0] when not defined. Resolves issue #486.
1 parent 55b5803 commit 681405d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unpacked/jax/output/NativeMML/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
MathJax.OutputJax.NativeMML = MathJax.OutputJax({
2929
id: "NativeMML",
30-
version: "2.2",
30+
version: "2.2.1",
3131
directory: MathJax.OutputJax.directory + "/NativeMML",
3232
extensionDir: MathJax.OutputJax.extensionDir + "/NativeMML",
3333

unpacked/jax/output/NativeMML/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@
576576
if (this.data[this.sub] == null) {type = "msup"}
577577
var tag = this.NativeMMLelement(type);
578578
this.NativeMMLattributes(tag);
579-
delete this.data[0].inferred;
579+
if (this.data[0]) {delete this.data[0].inferred}
580580
for (var i = 0, m = this.data.length; i < m; i++)
581581
{if (this.data[i]) {this.data[i].toNativeMML(tag)}}
582582
parent.appendChild(tag);

0 commit comments

Comments
 (0)